modulepackage
0.0.0-20190227162100-b5ca48f98911
Repository: https://github.com/manelmontilla/cron.git
Documentation: pkg.go.dev
# Functions
Every returns a crontab Schedule that activates once every duration.
New returns a new Cron job runner, in the Local time zone.
Creates a custom Parser with custom options.
NewWithLocation returns a new Cron job runner.
Parse returns a new crontab schedule representing the given spec.
ParseStandard returns a new crontab schedule representing the given standardSpec (https://en.wikipedia.org/wiki/Cron).
# Constants
Allow descriptors such as @monthly, @weekly, etc.
Day of month field, default *.
Day of week field, default *.
Optional day of week field, default *.
Hours field, default 0.
Minutes field, default 0.
Month field, default *.
Seconds field, default 0.
# Structs
ConstantDelaySchedule represents a simple recurring duty cycle, e.g.
Cron keeps track of any number of entries, invoking the associated func as specified by the schedule.
Entry consists of a schedule and the func to execute on that schedule.
A custom Parser that can be configured.
SpecSchedule specifies a duty cycle (to the second granularity), based on a traditional crontab specification.
# Type aliases
A wrapper that turns a func() into a cron.Job.
Configuration options for creating a parser.