Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler runs periodic tasks.
type Task ¶
type Task struct {
Name string
Schedule string // cron expression
Fn func(ctx context.Context) error
}
Task is a periodic task definition.
func DefaultTasks ¶
func DefaultTasks() []Task
DefaultTasks returns the standard set of periodic tasks. Each task's Fn should be set by the caller with access to services.
Click to show internal directories.
Click to hide internal directories.