Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct { JobId uint // 数据库id EntryId int // cron id Name string // 名称 InvokeTarget string // 调用目标名 CronExpression string // cron linux表达式 Args string // 回调参数 }
Base base job
type ExamplesOne ¶
type ExamplesOne struct{}
新添加的job 必须按照以下格式定义,并实现Exec函数
func (ExamplesOne) Exec ¶
func (ExamplesOne) Exec(arg interface{}) error
Click to show internal directories.
Click to hide internal directories.