Documentation
¶
Index ¶
Constants ¶
View Source
const ( EVERY = iota // Run the task every minInterval HOURLY // Run the task every hour. At minInterval(<60 Minutes) after the hour DAILY // Run the task every day. At minInterval(<24 Hours) after 00:00 WEEKDAYS // Run the task every weekday. At minInterval(<24 Hours) after 00:00 WEEKEND // Run the task everyweekend. At minInterval(<48Hours) after 00:00 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CronTab ¶
type CronTab struct {
Name string // Name of the job
Time time.Duration // Min inteval between triggers
TrigType DurationType // Refer to the const above for available options
Job func(ctx context.Context) error // Target routine to trigger
// contains filtered or unexported fields
}
CronTab describes the job to be run by cron
type DurationType ¶
type DurationType int
Click to show internal directories.
Click to hide internal directories.