Documentation ¶
Index ¶
- func ToPageInfo(info *timedjob.PageInfo, defaultOrders ...stores.OrderBy) *stores.PageInfo
- func ToPageInfoWithDefault(info *timedjob.PageInfo, defau *stores.PageInfo) *stores.PageInfo
- func ToTaskGroupPb(in *relationDB.TimedTaskGroup) *timedjob.TaskGroup
- func ToTaskGroupPbs(in []*relationDB.TimedTaskGroup) (ret []*timedjob.TaskGroup)
- func ToTaskGroupPo(in *timedjob.TaskGroup) *relationDB.TimedTaskGroup
- func ToTaskInfoPb(in *relationDB.TimedTaskInfo) *timedjob.TaskInfo
- func ToTaskInfoPbs(in []*relationDB.TimedTaskInfo) (ret []*timedjob.TaskInfo)
- func ToTaskInfoPo(in *timedjob.TaskInfo) *relationDB.TimedTaskInfo
- func ToTaskLog(po *relationDB.TimedTaskLog) *timedjob.TaskLog
- type TaskCancelLogic
- type TaskGroupCreateLogic
- type TaskGroupDeleteLogic
- type TaskGroupIndexLogic
- type TaskGroupReadLogic
- type TaskGroupUpdateLogic
- type TaskInfoCreateLogic
- type TaskInfoDeleteLogic
- type TaskInfoIndexLogic
- type TaskInfoReadLogic
- type TaskInfoUpdateLogic
- type TaskLogIndexLogic
- type TaskSendLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToPageInfo ¶
func ToPageInfoWithDefault ¶
func ToTaskGroupPb ¶
func ToTaskGroupPb(in *relationDB.TimedTaskGroup) *timedjob.TaskGroup
func ToTaskGroupPbs ¶
func ToTaskGroupPbs(in []*relationDB.TimedTaskGroup) (ret []*timedjob.TaskGroup)
func ToTaskGroupPo ¶
func ToTaskGroupPo(in *timedjob.TaskGroup) *relationDB.TimedTaskGroup
func ToTaskInfoPb ¶
func ToTaskInfoPb(in *relationDB.TimedTaskInfo) *timedjob.TaskInfo
func ToTaskInfoPbs ¶
func ToTaskInfoPbs(in []*relationDB.TimedTaskInfo) (ret []*timedjob.TaskInfo)
func ToTaskInfoPo ¶
func ToTaskInfoPo(in *timedjob.TaskInfo) *relationDB.TimedTaskInfo
func ToTaskLog ¶
func ToTaskLog(po *relationDB.TimedTaskLog) *timedjob.TaskLog
Types ¶
type TaskCancelLogic ¶
func NewTaskCancelLogic ¶
func NewTaskCancelLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskCancelLogic
func (*TaskCancelLogic) TaskCancel ¶
func (l *TaskCancelLogic) TaskCancel(in *timedjob.TaskWithTaskID) (*timedjob.Response, error)
type TaskGroupCreateLogic ¶
func NewTaskGroupCreateLogic ¶
func NewTaskGroupCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskGroupCreateLogic
func (*TaskGroupCreateLogic) TaskGroupCreate ¶
type TaskGroupDeleteLogic ¶
func NewTaskGroupDeleteLogic ¶
func NewTaskGroupDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskGroupDeleteLogic
func (*TaskGroupDeleteLogic) TaskGroupDelete ¶
type TaskGroupIndexLogic ¶
func NewTaskGroupIndexLogic ¶
func NewTaskGroupIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskGroupIndexLogic
func (*TaskGroupIndexLogic) TaskGroupIndex ¶
func (l *TaskGroupIndexLogic) TaskGroupIndex(in *timedjob.TaskGroupIndexReq) (*timedjob.TaskGroupIndexResp, error)
type TaskGroupReadLogic ¶
func NewTaskGroupReadLogic ¶
func NewTaskGroupReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskGroupReadLogic
func (*TaskGroupReadLogic) TaskGroupRead ¶
type TaskGroupUpdateLogic ¶
func NewTaskGroupUpdateLogic ¶
func NewTaskGroupUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskGroupUpdateLogic
func (*TaskGroupUpdateLogic) TaskGroupUpdate ¶
type TaskInfoCreateLogic ¶
func NewTaskInfoCreateLogic ¶
func NewTaskInfoCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskInfoCreateLogic
func (*TaskInfoCreateLogic) TaskInfoCreate ¶
type TaskInfoDeleteLogic ¶
func NewTaskInfoDeleteLogic ¶
func NewTaskInfoDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskInfoDeleteLogic
func (*TaskInfoDeleteLogic) TaskInfoDelete ¶
func (l *TaskInfoDeleteLogic) TaskInfoDelete(in *timedjob.WithGroupCode) (*timedjob.Response, error)
type TaskInfoIndexLogic ¶
func NewTaskInfoIndexLogic ¶
func NewTaskInfoIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskInfoIndexLogic
func (*TaskInfoIndexLogic) TaskInfoIndex ¶
func (l *TaskInfoIndexLogic) TaskInfoIndex(in *timedjob.TaskInfoIndexReq) (*timedjob.TaskInfoIndexResp, error)
type TaskInfoReadLogic ¶
func NewTaskInfoReadLogic ¶
func NewTaskInfoReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskInfoReadLogic
func (*TaskInfoReadLogic) TaskInfoRead ¶
func (l *TaskInfoReadLogic) TaskInfoRead(in *timedjob.WithGroupCode) (*timedjob.TaskInfo, error)
type TaskInfoUpdateLogic ¶
func NewTaskInfoUpdateLogic ¶
func NewTaskInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskInfoUpdateLogic
func (*TaskInfoUpdateLogic) TaskInfoUpdate ¶
type TaskLogIndexLogic ¶
func NewTaskLogIndexLogic ¶
func NewTaskLogIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskLogIndexLogic
func (*TaskLogIndexLogic) TaskLogIndex ¶
func (l *TaskLogIndexLogic) TaskLogIndex(in *timedjob.TaskLogIndexReq) (*timedjob.TaskLogIndexResp, error)
type TaskSendLogic ¶
func NewTaskSendLogic ¶
func NewTaskSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskSendLogic
func (*TaskSendLogic) TaskSend ¶
func (l *TaskSendLogic) TaskSend(in *timedjob.TaskSendReq) (*timedjob.TaskWithTaskID, error)
发送延时请求,如果任务不存在,则会自动创建,但是自动创建的需要填写param
Source Files ¶
Click to show internal directories.
Click to hide internal directories.