Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTaskReq ¶
type CreateTaskReq struct { Title string `json:"title"` Describe string `json:"describe"` Type int `json:"type"` TimeBar string `json:"timeBar"` State int `json:"state"` Code string `json:"code"` Retry int `json:"retry"` RetryDelay int64 `json:"retryDelay"` }
CreateTaskReq 添加任务[参数]
type HTTPHandOut ¶
type HTTPHandOut struct {
// contains filtered or unexported fields
}
HTTPHandOut restful的方式分发
func NewHTTPHandOut ¶
func NewHTTPHandOut(conf *Config) *HTTPHandOut
NewHTTPHandOut new restful HandOut
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor 处理器
func NewProcessor ¶
NewProcessor new a
type Task ¶
type Task interface { // 添加任务 CreateTask(ctx context.Context, req *CreateTaskReq) (*CreateTaskReq, error) // UpdateTaskState 修改任务 UpdateTask(ctx context.Context, req *UpdateTaskReq) (*UpdateTaskResp, error) // UpdateTaskState 修改任务状态 UpdateTaskState(ctx context.Context, req *UpdateTaskStateReq) (*UpdateTaskStateResp, error) }
Task task
type UpdateTaskReq ¶
type UpdateTaskReq struct { TaskID string `json:"taskID"` Code string `json:"code"` Title string `json:"title"` Describe string `json:"describe"` Type int `json:"type"` TimeBar string `json:"timeBar"` Retry int `json:"retry"` RetryDelay int `json:"retryDelay"` }
UpdateTaskReq 修改任务[参数]
type UpdateTaskStateReq ¶
type UpdateTaskStateReq struct { TaskID string `json:"taskID"` Code string `json:"code"` State int `json:"state"` }
UpdateTaskStateReq 修改任务状态[参数]
Click to show internal directories.
Click to hide internal directories.