Versions in this module Expand all Collapse all v0 v0.1.0 Sep 28, 2021 Changes in this version + const DefaultTTL + const DefaultWaitLockTime + const WorkerLockDir + var Every = cron.Every + var NewChain = cron.NewChain + var NewParser = cron.NewParser + var WithLocation = cron.WithLocation + var WithParser = cron.WithParser + var WithSeconds = cron.WithSeconds + type Config struct + ConcurrentDelay int + DistributedTask bool + ImmediatelyRun bool + WaitLockTime time.Duration + WithSeconds bool + func DefaultConfig() Config + func RawConfig(key string) Config + func StdConfig(name string) Config + func (config *Config) WithChain(wrappers ...JobWrapper) Config + func (config *Config) WithLogger(logger *olog.Logger) Config + func (config *Config) WithParser(parser Parser) Config + func (config Config) Build() *Cron + type Cron struct + func (c *Cron) AddFunc(spec string, cmd func() error) (EntryID, error) + func (c *Cron) AddJob(spec string, cmd NamedJob) (EntryID, error) + func (c *Cron) GetEntryByName(name string) cron.Entry + func (c *Cron) Run() error + func (c *Cron) Schedule(schedule Schedule, job NamedJob) EntryID + func (c *Cron) Stop() error + type Entry = cron.Entry + type EntryID = cron.EntryID + type FuncJob func() error + func (f FuncJob) Name() string + func (f FuncJob) Run() error + type Job = cron.Job + type JobWrapper = cron.JobWrapper + type NamedJob interface + Name func() string + Run func() error + type Option = cron.Option + type Parser = cron.Parser + type Schedule = cron.Schedule