package
3.8.26
Repository: https://github.com/abulo/ratel.git
Documentation: pkg.go.dev

# README

cron

fork from robfig/cron

maintain by Task opensource team.

# Functions

Every returns a crontab Schedule that activates once every duration.
New returns a new Cron job runner, modified by the given options.
NewChain returns a Chain consisting of the given JobWrappers.
NewParser creates a Parser with custom options.
ParseStandard returns a new crontab schedule representing the given standardSpec (https://en.wikipedia.org/wiki/Cron).
WithChain specifies Job wrappers to apply to all jobs added to this cron.
WithLocation overrides the timezone of the cron instance.
WithParser overrides the parser used for interpreting job schedules.
WithSeconds overrides the parser used for interpreting job schedules to include a seconds field as the first one.

# 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.
Optional seconds field, default 0.

# Structs

Chain is a sequence of JobWrappers that decorates submitted jobs with cross-cutting behaviors like logging or synchronization.
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
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.

# Interfaces

Job is an interface for submitted cron jobs.
Schedule describes a job's duty cycle.
ScheduleParser is an interface for schedule spec parsers that return a Schedule.

# Type aliases

EntryID identifies an entry within a Cron instance.
FuncJob is a wrapper that turns a func() into a cron.Job.
JobWrapper decorates the given Job with some behavior.
Option represents a modification to the default behavior of a Cron.
Configuration options for creating a parser.