Versions in this module Expand all Collapse all v1 v1.0.0 Apr 10, 2022 Changes in this version + type BackgroundCommand struct + func NewBackgroundCommand(cmd Command, opts ...BackgroundCommandOption) *BackgroundCommand + func (bg *BackgroundCommand) Run() + func (c *BackgroundCommand) Stop() + type BackgroundCommandOption func(*BackgroundCommand) + func BackgroundCommandWithExecutionDurationHistogramCounter(h metrics.Histogram) BackgroundCommandOption + func BackgroundCommandWithInterval(interval time.Duration) BackgroundCommandOption + func BackgroundCommandWithLogger(l log.Logger) BackgroundCommandOption + type Command interface + Execute func(context.Context) error