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 ¶
Types ¶
type TaskInfoService ¶
func NewTaskInfoService ¶
func NewTaskInfoService() *TaskInfoService
func (*TaskInfoService) ModifyAfter ¶
func (*TaskInfoService) Once ¶
func (s *TaskInfoService) Once(ctx g.Ctx, id int64) error
Once 执行一次任务
func (*TaskInfoService) SetNextRunTime ¶
SetNextRunTime 更新下次执行时间
Click to show internal directories.
Click to hide internal directories.