package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Dec 15, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
LocationString string `env:"CRON_LOCATION" envDefault:"Asia/Shanghai"`
}
type Cron interface {
AddFunc(spec string, cmd func()) (cron.EntryID, error)
AddJob(spec string, cmd cron.Job) (cron.EntryID, error)
Run()
Start()
Raw() *cron.Cron
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.