Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundCommand ¶
type BackgroundCommand struct {
// contains filtered or unexported fields
}
func NewBackgroundCommand ¶
func NewBackgroundCommand(cmd Command, opts ...BackgroundCommandOption) *BackgroundCommand
func (*BackgroundCommand) Run ¶
func (bg *BackgroundCommand) Run()
func (*BackgroundCommand) Stop ¶
func (c *BackgroundCommand) Stop()
type BackgroundCommandOption ¶
type BackgroundCommandOption func(*BackgroundCommand)
func BackgroundCommandWithExecutionDurationHistogramCounter ¶
func BackgroundCommandWithExecutionDurationHistogramCounter(h metrics.Histogram) BackgroundCommandOption
func BackgroundCommandWithInterval ¶
func BackgroundCommandWithInterval(interval time.Duration) BackgroundCommandOption
BackgroundWithInterval sets the time duration within command executions
func BackgroundCommandWithLogger ¶
func BackgroundCommandWithLogger(l log.Logger) BackgroundCommandOption
Click to show internal directories.
Click to hide internal directories.