Documentation ¶
Index ¶
- Variables
- func AddJob(s Scheduled) (int, error)
- func CallExec(e JobExec, arg interface{}) error
- func InitCron()
- func InitJob()
- func NewWithSeconds() *cron.Cron
- func RegisterExec(jobName string, e JobExec)
- func Remove(entryID int) chan bool
- func Stop() chan bool
- type ExamplesOne
- type ExecJob
- type HTTPJob
- type Job
- type JobExec
- type Scheduled
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.