Versions in this module Expand all Collapse all v1 v1.3.0 Jul 1, 2019 v1.2.0 Mar 17, 2018 Changes in this version + type ConstantDelaySchedule struct + Delay time.Duration + func Every(duration time.Duration) ConstantDelaySchedule + func (schedule ConstantDelaySchedule) Next(t time.Time) time.Time + type Cron struct + ErrorLog *log.Logger + func New() *Cron + func NewWithLocation(location *time.Location) *Cron + func (c *Cron) AddFunc(spec string, cmd func()) error + func (c *Cron) AddJob(spec string, cmd Job) error + func (c *Cron) Entries() []*Entry + func (c *Cron) Location() *time.Location + func (c *Cron) Run() + func (c *Cron) Schedule(schedule Schedule, cmd Job) + func (c *Cron) Start() + func (c *Cron) Stop() + type Entry struct + Job Job + Next time.Time + Prev time.Time + Schedule Schedule + type FuncJob func() + func (f FuncJob) Run() + type Job interface + Run func() + type ParseOption int + const Descriptor + const Dom + const Dow + const DowOptional + const Hour + const Minute + const Month + const Second + type Parser struct + func NewParser(options ParseOption) Parser + func (p Parser) Parse(spec string) (Schedule, error) + type Schedule interface + Next func(time.Time) time.Time + func Parse(spec string) (Schedule, error) + func ParseStandard(standardSpec string) (Schedule, error) + type SpecSchedule struct + Dom uint64 + Dow uint64 + Hour uint64 + Minute uint64 + Month uint64 + Second uint64 + func (s *SpecSchedule) Next(t time.Time) time.Time