Versions in this module Expand all Collapse all v0 v0.5.0 Sep 14, 2014 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(desc, spec string, cmd func()) error + func (c *Cron) AddJob(desc, spec string, cmd Job) error + func (c *Cron) Entries() []*Entry + func (c *Cron) Schedule(desc, spec string, schedule Schedule, cmd Job) + func (c *Cron) Start() + func (c *Cron) Stop() + type Entry struct + Description string + ExecTimes int + Job Job + Next time.Time + Prev time.Time + Schedule Schedule + Spec string + func ListEntries() []*Entry + type FuncJob func() + func (f FuncJob) Run() + type Job interface + Run func() + 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 v0.4.2 Jun 6, 2014 v0.4.1 Jun 1, 2014 v0.4.0 May 31, 2014 v0.3.1 Apr 29, 2014 v0.3.0 Apr 21, 2014 Changes in this version + func NewCronContext()