Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StackTraceLogField = "stack-trace"
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { TaskInterval time.Duration TaskTimeout time.Duration RunnerFrequency time.Duration }
func CreateDefaultConfig ¶
func CreateDefaultConfig() Config
type Coordinator ¶
type PeriodicSingleTaskRunner ¶
type PeriodicSingleTaskRunner struct {
// contains filtered or unexported fields
}
func NewSingleTaskRunner ¶
func NewSingleTaskRunner( ctx context.Context, taskKey string, taskFunc func(context.Context) error, coordinator Coordinator, config *Config, ) *PeriodicSingleTaskRunner
func (*PeriodicSingleTaskRunner) Done ¶
func (r *PeriodicSingleTaskRunner) Done() <-chan struct{}
Done copied from context.Context
Click to show internal directories.
Click to hide internal directories.