Documentation ¶
Index ¶
- Variables
- func ControllerModule(opts ...Option) dep.Module
- func WorkerModule(opts ...Option) dep.Module
- type Api
- func (a *Api) CancelTask(ctx context.Context, request *CancelTaskRequest) (*CancelTaskResponse, error)
- func (a *Api) CreateTask(ctx context.Context, request *CreateTaskRequest) (*CreateTaskResponse, error)
- func (a *Api) ListWorkers(ctx context.Context, request *ListWorkerRequest) (*ListWorkerResponse, error)
- type CancelTaskRequest
- type CancelTaskResponse
- type CreateTaskRequest
- type CreateTaskResponse
- type ListWorkerRequest
- type ListWorkerResponse
- type ListWorkerResponseItem
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WorkerModuleName = dep.Name("wk", "job", "worker") ControllerModuleName = dep.Name("wk", "job", "controller") )
Functions ¶
func ControllerModule ¶
func WorkerModule ¶
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) CancelTask ¶
func (a *Api) CancelTask(ctx context.Context, request *CancelTaskRequest) (*CancelTaskResponse, error)
func (*Api) CreateTask ¶
func (a *Api) CreateTask(ctx context.Context, request *CreateTaskRequest) (*CreateTaskResponse, error)
func (*Api) ListWorkers ¶
func (a *Api) ListWorkers(ctx context.Context, request *ListWorkerRequest) (*ListWorkerResponse, error)
type CancelTaskRequest ¶
type CancelTaskResponse ¶
type CancelTaskResponse struct{}
type CreateTaskRequest ¶
type CreateTaskResponse ¶
type ListWorkerRequest ¶
type ListWorkerRequest struct{}
type ListWorkerResponse ¶
type ListWorkerResponse struct {
Workers []ListWorkerResponseItem `json:"workers"`
}
type ListWorkerResponseItem ¶
Click to show internal directories.
Click to hide internal directories.