Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionOption ¶
type ExecutionOption func(*executionContext)
func OnFailure ¶
func OnFailure(task Task) ExecutionOption
func OnSuccess ¶
func OnSuccess(task Task) ExecutionOption
func Parallel ¶
func Parallel(tasks ...Task) ExecutionOption
func Sequential ¶
func Sequential(tasks ...Task) ExecutionOption
func WithContext ¶
func WithContext(ctx context.Context) ExecutionOption
type Periodic ¶
type Periodic struct { // Interval of the task being run Interval time.Duration // Execute is the task function Execute func() error // OnFailure will be called when Execute returns non-nil error OnError func(error) // contains filtered or unexported fields }
Periodic is a task that runs periodically.
Click to show internal directories.
Click to hide internal directories.