Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleSpec ¶
type ScheduleSpec struct {
// contains filtered or unexported fields
}
func ParseCronSchedule ¶
func ParseCronSchedule(interval string) (*ScheduleSpec, error)
ParseCronSchedule can parse standard cron notation it returns a new crontab schedule representing the given standardSpec (https://en.wikipedia.org/wiki/Cron). It requires 5 entries representing: minute, hour, day of month, month and day of week, in that order. It returns a descriptive error if the spec is not valid.
It accepts
- Standard crontab specs, e.g. "* * * * ?"
- Descriptors, e.g. "@midnight", "@every 1h30m"
Click to show internal directories.
Click to hide internal directories.