Versions in this module Expand all Collapse all v1 v1.2.7 Sep 11, 2021 Changes in this version + type CreateCronTaskData struct + Command string + HttpMethod int32 + IsUsed int32 + Name string + NotifyKeyword string + NotifyReceiverEmail string + NotifyStatus int32 + NotifyType int32 + Protocol int32 + Remark string + RetryInterval int32 + RetryTimes int32 + Spec string + Timeout int32 + type ModifyCronTaskData struct + Command string + HttpMethod int32 + IsUsed int32 + Name string + NotifyKeyword string + NotifyReceiverEmail string + NotifyStatus int32 + NotifyType int32 + Protocol int32 + Remark string + RetryInterval int32 + RetryTimes int32 + Spec string + Timeout int32 + type SearchData struct + IsUsed int32 + Name string + Page int + PageSize int + Protocol int32 + type SearchOneData struct + Id int32 + type Service interface + Create func(ctx core.Context, createData *CreateCronTaskData) (id int32, err error) + Detail func(ctx core.Context, searchOneData *SearchOneData) (info *cron_task_repo.CronTask, err error) + Execute func(ctx core.Context, id int32) (err error) + Modify func(ctx core.Context, id int32, modifyData *ModifyCronTaskData) (err error) + PageList func(ctx core.Context, searchData *SearchData) (listData []*cron_task_repo.CronTask, err error) + PageListCount func(ctx core.Context, searchData *SearchData) (total int64, err error) + UpdateUsed func(ctx core.Context, id int32, used int32) (err error) + func New(db db.Repo, cache cache.Repo, cron cron_server.Server) Service