Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITaskModel ¶
type Server ¶
type Server interface { Start() TaskCountWait() // Stop 停止 cron 服务 Stop() // AddTask 增加定时任务 AddTask(task ITaskModel) // RemoveTask 删除定时任务 RemoveTask(taskId string) // AddJob 增加定时任务执行的工作内容 AddJob(task ITaskModel) cron.FuncJob // contains filtered or unexported methods }
singleton
Click to show internal directories.
Click to hide internal directories.