Documentation
¶
Index ¶
- Variables
- type Todo
- func (s *Todo) CreateTodo(ctx context.Context, v *entity.Todo) error
- func (s *Todo) DeleteTodo(ctx context.Context, id string) error
- func (s *Todo) ListTodos(ctx context.Context) (ret []*entity.Todo, err error)
- func (s *Todo) Subscribe(handler event.Subscription, evt event.Event) func()
- func (s *Todo) UpdateTodo(ctx context.Context, v *entity.Todo) error
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( DefaultTodo, )
WireSet all entities for wire inject
Functions ¶
This section is empty.
Types ¶
type Todo ¶
type Todo struct {
// contains filtered or unexported fields
}
Todo is domain logic for todo entity
func (*Todo) CreateTodo ¶
CreateTodo is create todo entity
func (*Todo) DeleteTodo ¶
DeleteTodo is delete todo entity
Click to show internal directories.
Click to hide internal directories.