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 wraps robfig/cron and manages named tasks.
func New ¶
New creates a scheduler with the standard 5-field cron parser plus descriptors (@every, @daily, etc.).
func (*Scheduler) Add ¶
Add registers a named task with a cron expression. Returns an error if the cron expression is invalid.
Click to show internal directories.
Click to hide internal directories.