Versions in this module Expand all Collapse all v1 v1.0.2 Sep 27, 2023 v1.0.1 May 23, 2023 Changes in this version + const StatusClosed + const StatusReady + const StatusRunning + const StatusStopped + func DelayAdd(delay time.Duration, pattern string, job func(), name ...string) + func DelayAddOnce(delay time.Duration, pattern string, job func(), name ...string) + func DelayAddSingleton(delay time.Duration, pattern string, job func(), name ...string) + func DelayAddTimes(delay time.Duration, pattern string, times int, job func(), name ...string) + func GetLogLevel() int + func GetLogPath() string + func Remove(name string) + func SetLogLevel(level int) + func SetLogPath(path string) + func Size() int + func Start(name string) + func Stop(name string) + type Cron struct + func New() *Cron + func (c *Cron) Add(pattern string, job func(), name ...string) (*Entry, error) + func (c *Cron) AddOnce(pattern string, job func(), name ...string) (*Entry, error) + func (c *Cron) AddSingleton(pattern string, job func(), name ...string) (*Entry, error) + func (c *Cron) AddTimes(pattern string, times int, job func(), name ...string) (*Entry, error) + func (c *Cron) Close() + func (c *Cron) DelayAdd(delay time.Duration, pattern string, job func(), name ...string) + func (c *Cron) DelayAddOnce(delay time.Duration, pattern string, job func(), name ...string) + func (c *Cron) DelayAddSingleton(delay time.Duration, pattern string, job func(), name ...string) + func (c *Cron) DelayAddTimes(delay time.Duration, pattern string, times int, job func(), name ...string) + func (c *Cron) Entries() []*Entry + func (c *Cron) GetLogLevel() int + func (c *Cron) GetLogPath() string + func (c *Cron) Remove(name string) + func (c *Cron) Search(name string) *Entry + func (c *Cron) SetLogLevel(level int) + func (c *Cron) SetLogPath(path string) + func (c *Cron) Size() int + func (c *Cron) Start(name ...string) + func (c *Cron) Stop(name ...string) + type Entry struct + Job func() + Name string + Time time.Time + func Add(pattern string, job func(), name ...string) (*Entry, error) + func AddOnce(pattern string, job func(), name ...string) (*Entry, error) + func AddSingleton(pattern string, job func(), name ...string) (*Entry, error) + func AddTimes(pattern string, times int, job func(), name ...string) (*Entry, error) + func Entries() []*Entry + func Search(name string) *Entry + func (entry *Entry) Close() + func (entry *Entry) IsSingleton() bool + func (entry *Entry) SetSingleton(enabled bool) + func (entry *Entry) SetStatus(status int) int + func (entry *Entry) SetTimes(times int) + func (entry *Entry) Start() + func (entry *Entry) Status() int + func (entry *Entry) Stop()