Documentation ¶
Index ¶
- func DisableTask(ctx g.Ctx, cronId string) (err error)
- func EnableTask(ctx g.Ctx, cronId string, funcstring string, cron string, startDate string) (err error)
- type TaskInfoService
- func (s *TaskInfoService) Log(ctx g.Ctx, param g.MapStrStr) (data interface{}, err error)
- func (s *TaskInfoService) ModifyAfter(ctx g.Ctx, method string, param g.MapStrAny) (err error)
- func (s *TaskInfoService) Once(ctx g.Ctx, id int64) error
- func (s *TaskInfoService) Record(ctx g.Ctx, id string, status int, detail string) error
- func (s *TaskInfoService) SetNextRunTime(ctx g.Ctx, cronId string, cron string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableTask ¶ added in v0.2.1
DisableTask 禁用任务
Types ¶
type TaskInfoService ¶
func NewTaskInfoService ¶
func NewTaskInfoService() *TaskInfoService
func (*TaskInfoService) ModifyAfter ¶ added in v0.2.1
func (*TaskInfoService) Once ¶ added in v0.2.1
func (s *TaskInfoService) Once(ctx g.Ctx, id int64) error
Once 执行一次任务
func (*TaskInfoService) SetNextRunTime ¶ added in v0.3.2
SetNextRunTime 更新下次执行时间
Click to show internal directories.
Click to hide internal directories.