Documentation ¶
Index ¶
- type Client
- type CreateTaskInput
- type CreateTaskOutput
- type DeleteTaskInput
- type GetTaskInput
- type GetTaskOutput
- type ListTasksInput
- type ListTasksOutput
- type TaskAccessor
- func (t *TaskAccessor) CreateTask(ctx context.Context, create *task.TaskCreate) (*task.Task, error)
- func (t *TaskAccessor) DeleteTask(ctx context.Context, id string) error
- func (t *TaskAccessor) Expectations()
- func (t *TaskAccessor) GetTask(ctx context.Context, id string) (*task.Task, error)
- func (t *TaskAccessor) ListTasks(ctx context.Context, filter *task.TaskFilter, pagination *page.Pagination) (task.Tasks, error)
- func (t *TaskAccessor) UpdateTask(ctx context.Context, id string, update *task.TaskUpdate) (*task.Task, error)
- type UpdateTaskInput
- type UpdateTaskOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*TaskAccessor
}
func (*Client) Expectations ¶
func (c *Client) Expectations()
type CreateTaskInput ¶
type CreateTaskInput struct { Context context.Context Create *task.TaskCreate }
type CreateTaskOutput ¶
type DeleteTaskInput ¶
type GetTaskInput ¶
type GetTaskOutput ¶
type ListTasksInput ¶
type ListTasksInput struct { Context context.Context Filter *task.TaskFilter Pagination *page.Pagination }
type ListTasksOutput ¶
type TaskAccessor ¶
type TaskAccessor struct { ListTasksInvocations int ListTasksInputs []ListTasksInput ListTasksOutputs []ListTasksOutput CreateTaskInvocations int CreateTaskInputs []CreateTaskInput CreateTaskOutputs []CreateTaskOutput GetTaskInvocations int GetTaskInputs []GetTaskInput GetTaskOutputs []GetTaskOutput UpdateTaskInvocations int UpdateTaskInputs []UpdateTaskInput UpdateTaskOutputs []UpdateTaskOutput DeleteTaskInvocations int DeleteTaskInputs []DeleteTaskInput DeleteTaskOutputs []error }
func NewTaskAccessor ¶
func NewTaskAccessor() *TaskAccessor
func (*TaskAccessor) CreateTask ¶
func (t *TaskAccessor) CreateTask(ctx context.Context, create *task.TaskCreate) (*task.Task, error)
func (*TaskAccessor) DeleteTask ¶
func (t *TaskAccessor) DeleteTask(ctx context.Context, id string) error
func (*TaskAccessor) Expectations ¶
func (t *TaskAccessor) Expectations()
func (*TaskAccessor) ListTasks ¶
func (t *TaskAccessor) ListTasks(ctx context.Context, filter *task.TaskFilter, pagination *page.Pagination) (task.Tasks, error)
func (*TaskAccessor) UpdateTask ¶
func (t *TaskAccessor) UpdateTask(ctx context.Context, id string, update *task.TaskUpdate) (*task.Task, error)
type UpdateTaskInput ¶
type UpdateTaskInput struct { Context context.Context ID string Update *task.TaskUpdate }
type UpdateTaskOutput ¶
Click to show internal directories.
Click to hide internal directories.