Documentation ¶
Index ¶
- type TaskInfoController
- func (c *TaskInfoController) Log(ctx g.Ctx, req *TaskInfoLogReq) (res *cool.BaseRes, err error)
- func (c *TaskInfoController) Once(ctx g.Ctx, req *TaskInfoOnceReq) (res *cool.BaseRes, err error)
- func (c *TaskInfoController) Start(ctx g.Ctx, req *TaskInfoStartReq) (res *cool.BaseRes, err error)
- func (c *TaskInfoController) Stop(ctx g.Ctx, req *TaskInfoStopReq) (res *cool.BaseRes, err error)
- type TaskInfoLogReq
- type TaskInfoOnceReq
- type TaskInfoStartReq
- type TaskInfoStopReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskInfoController ¶
type TaskInfoController struct {
*cool.Controller
}
func (*TaskInfoController) Log ¶
func (c *TaskInfoController) Log(ctx g.Ctx, req *TaskInfoLogReq) (res *cool.BaseRes, err error)
Log 任务日志
func (*TaskInfoController) Once ¶
func (c *TaskInfoController) Once(ctx g.Ctx, req *TaskInfoOnceReq) (res *cool.BaseRes, err error)
Once 执行一次
func (*TaskInfoController) Start ¶
func (c *TaskInfoController) Start(ctx g.Ctx, req *TaskInfoStartReq) (res *cool.BaseRes, err error)
Start 启动任务
func (*TaskInfoController) Stop ¶
func (c *TaskInfoController) Stop(ctx g.Ctx, req *TaskInfoStopReq) (res *cool.BaseRes, err error)
Stop 停止任务
type TaskInfoLogReq ¶
type TaskInfoLogReq struct { g.Meta `path:"/log" method:"GET"` ID int64 `json:"id"` Status int `json:"status"` }
TaskInfoLogReq 请求参数
type TaskInfoOnceReq ¶
type TaskInfoOnceReq struct { g.Meta `path:"/once" method:"POST"` ID int64 `json:"id" v:"required#请输入id"` }
TaskInfoOnceReq 请求参数
type TaskInfoStartReq ¶
type TaskInfoStartReq struct { g.Meta `path:"/start" method:"GET"` ID int64 `json:"id" v:"required#请输入id"` }
TaskInfoStartReq 请求参数
type TaskInfoStopReq ¶
type TaskInfoStopReq struct { g.Meta `path:"/stop" method:"GET"` ID int64 `json:"id" v:"required#请输入id"` }
TaskInfoStopReq 请求参数
Click to show internal directories.
Click to hide internal directories.