Versions in this module Expand all Collapse all v1 v1.0.2 Nov 7, 2016 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 + func New() *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) RemoveJob(cb RemoveCheckFunc) + 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 RemoveCheckFunc func(e *Entry) bool + type Schedule interface + Next func(time.Time) time.Time + func Parse(spec string) (_ Schedule, err 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