package
Version:
v0.0.0-...-88540c7
Opens a new window with list of versions in this module.
Published: Sep 7, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AddJob 添加任务 AddJob(invokeTarget string, jobId int, jobName string, cronExpression string)
InitJob
需要将定义的struct 添加到字典中;
字典 key 可以配置到 自动任务 调用目标 中;
func Remove(c *cron.Cron, entryID int) chan bool
Remove 移除任务
type ExamplesOne struct {
}
ExamplesOne
新添加的job 必须按照以下格式定义,并实现Exec函数
type Job interface {
Run()
}
type JobExec interface {
Exec(arg interface{}) error
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.