Versions in this module Expand all Collapse all v0 v0.4.0 Aug 23, 2020 Changes in this version + func NewTask(query *TaskQuery, command *TaskCommand) proto.TaskServiceHandler + type TaskCommand struct + func NewTaskCommand(createTaskInputPort port.CreateTask, deleteTaskInputPort port.DeleteTask) *TaskCommand + func (c *TaskCommand) Create(ctx context.Context, req *proto.CreateRequest, rsp *proto.CreateResponse) error + func (c *TaskCommand) Delete(ctx context.Context, req *proto.DeleteRequest, rsp *proto.DeleteResponse) error + type TaskQuery struct + func NewTaskQuery(listTasksInputPort port.ListTasks, getTaskInputPort port.GetTask) *TaskQuery + func (c *TaskQuery) Get(ctx context.Context, req *proto.GetRequest, rsp *proto.GetResponse) error + func (c *TaskQuery) List(ctx context.Context, req *proto.ListRequest, rsp *proto.ListResponse) error