Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronDs ¶
type CronDs struct { CDs CronIntf // 定时任务实例 // contains filtered or unexported fields }
func New ¶
func New(Log logrus.Ext1FieldLogger) *CronDs
type CronIntf ¶ added in v0.0.3
type CronIntf interface { // AddCron // 添加任务 AddCron(job Job) // RunCron // 启动任务 RunCron(jobid string) // StopCron // 停止任务 StopCron(jobid string) // ClearCron // 删除任务, 通过传入的任务ID ClearCron(jobid string) // Clear // 删除所有任务 Clear() // Stop // 停止所有任务 Stop() // Start // 启动服务 Start() // RunCount // 当前在运行的任务个数 RunCount() int }
CronIntf 定时任务接口 jobid 通过UUID 和 任务名称 SHA1 哈希之后生成的字符串
type CronJob ¶ added in v0.0.5
type CronJob struct {
cron_line.CronDispatch
}
Directories ¶
Path | Synopsis |
---|---|
pkg
|
|
global
* @Author: your name * @Date: 2021-10-22 10:09:08 * @LastEditTime: 2021-10-22 11:45:49 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \issueyeCron\pkg\global\global.go
|
* @Author: your name * @Date: 2021-10-22 10:09:08 * @LastEditTime: 2021-10-22 11:45:49 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \issueyeCron\pkg\global\global.go |
service
* @Author: your name * @Date: 2021-10-22 10:09:08 * @LastEditTime: 2021-10-22 17:42:11 * @LastEditors: your name * @Description: In User Settings Edit * @FilePath: \yecron\pkg\service\cron.go
|
* @Author: your name * @Date: 2021-10-22 10:09:08 * @LastEditTime: 2021-10-22 17:42:11 * @LastEditors: your name * @Description: In User Settings Edit * @FilePath: \yecron\pkg\service\cron.go |
sqlserver
* @Author: your name * @Date: 2021-10-22 10:09:08 * @LastEditTime: 2021-10-22 17:42:34 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \issueyeCron\pkg\sqlserver\SqlServer.go
|
* @Author: your name * @Date: 2021-10-22 10:09:08 * @LastEditTime: 2021-10-22 17:42:34 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \issueyeCron\pkg\sqlserver\SqlServer.go |
utils
* @Author: your name * @Date: 2021-10-22 10:09:08 * @LastEditTime: 2021-10-22 13:18:40 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \yecron\pkg\utils\utils.go
|
* @Author: your name * @Date: 2021-10-22 10:09:08 * @LastEditTime: 2021-10-22 13:18:40 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \yecron\pkg\utils\utils.go |
Click to show internal directories.
Click to hide internal directories.