Documentation ¶
Index ¶
- Constants
- func StartCron(cronExp string, cronFun func()) error
- func StartCronJob(cronExp string, job cron.Job) error
- func StartCronJobV3(cronExp string, job Job) error
- func StartCronV3(cronExp string, cronFun func()) error
- func StartMoreCron(cronMap map[string]func()) error
- func StartMoreCronV3(cronMap map[string]func()) (map[cron.EntryID]error, error)
- type Job
Constants ¶
View Source
const ( Every1s = "@every 1s" Every5s = "@every 5s" Every1m = "@every 1m" Every1h = "@every 1h" )
Variables ¶
This section is empty.
Functions ¶
func StartCronJobV3 ¶ added in v0.0.9
func StartCronV3 ¶ added in v0.0.9
func StartMoreCronV3 ¶ added in v0.0.9
StartMoreCronV3 启动多个定时任务
Types ¶
Click to show internal directories.
Click to hide internal directories.