README ¶ cron A cron jobs Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Cron func NewCron() *Cron func (t *Cron) Add(nextFunc NextFunc, doFunc DoFunc) bool func (t *Cron) AddWithCancel(nextFunc NextFunc, doFunc DoFunc) (cancelFunc DoFunc, ok bool) func (t *Cron) Wait() type DoFunc type NextFunc func Order(ts ...time.Time) NextFunc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cron ¶ type Cron struct { // contains filtered or unexported fields } func NewCron ¶ func NewCron() *Cron func (*Cron) Add ¶ func (t *Cron) Add(nextFunc NextFunc, doFunc DoFunc) bool func (*Cron) AddWithCancel ¶ func (t *Cron) AddWithCancel(nextFunc NextFunc, doFunc DoFunc) (cancelFunc DoFunc, ok bool) func (*Cron) Wait ¶ func (t *Cron) Wait() type DoFunc ¶ type DoFunc func() type NextFunc ¶ type NextFunc func(now time.Time) (time.Time, bool) func Order ¶ func Order(ts ...time.Time) NextFunc Source Files ¶ View all Source files cron.goorder.go Directories ¶ Show internal Expand all Path Synopsis crontab Click to show internal directories. Click to hide internal directories.