Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GCron *cron.Cron
GCron 全局定时任务
Functions ¶
func AddJob ¶
AddJob 添加任务 AddJob(invokeTarget string, jobId int, jobName string, cronExpression string)
func NewWithSeconds ¶
func NewWithSeconds() *cron.Cron
NewWithSeconds returns a Cron with the seconds field enabled.
Types ¶
Click to show internal directories.
Click to hide internal directories.