Documentation ¶
Index ¶
- type Clocker
- type Generator
- type TodoRepository
- func (_m *TodoRepository) Create(_a0 context.Context, _a1 domain.Todo) error
- func (_m *TodoRepository) DeleteByID(_a0 context.Context, _a1 string) error
- func (_m *TodoRepository) Fetch(_a0 context.Context) ([]*domain.Todo, error)
- func (_m *TodoRepository) GetByID(_a0 context.Context, _a1 string) (*domain.Todo, error)
- func (_m *TodoRepository) ReplaceByID(_a0 context.Context, _a1 domain.Todo) error
- func (_m *TodoRepository) UpdateByID(_a0 context.Context, _a1 domain.Todo) error
- type TodoUsecase
- func (_m *TodoUsecase) CreateTodo(_a0 context.Context, _a1 domain.TodoCreatePayload) error
- func (_m *TodoUsecase) DeleteTodoByID(_a0 context.Context, _a1 string) error
- func (_m *TodoUsecase) FetchTodos(_a0 context.Context) ([]*domain.Todo, error)
- func (_m *TodoUsecase) GetTodoByID(_a0 context.Context, _a1 string) (*domain.Todo, error)
- func (_m *TodoUsecase) ReplaceTodoByID(_a0 context.Context, _a1 domain.TodoReplacePayload) error
- func (_m *TodoUsecase) UpdateTodoByID(_a0 context.Context, _a1 domain.TodoUpdatePayload) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
Generator is an autogenerated mock type for the Generator type
type TodoRepository ¶
TodoRepository is an autogenerated mock type for the TodoRepository type
func (*TodoRepository) DeleteByID ¶
func (_m *TodoRepository) DeleteByID(_a0 context.Context, _a1 string) error
DeleteByID provides a mock function with given fields: _a0, _a1
func (*TodoRepository) ReplaceByID ¶
ReplaceByID provides a mock function with given fields: _a0, _a1
func (*TodoRepository) UpdateByID ¶
UpdateByID provides a mock function with given fields: _a0, _a1
type TodoUsecase ¶
TodoUsecase is an autogenerated mock type for the TodoUsecase type
func (*TodoUsecase) CreateTodo ¶
func (_m *TodoUsecase) CreateTodo(_a0 context.Context, _a1 domain.TodoCreatePayload) error
CreateTodo provides a mock function with given fields: _a0, _a1
func (*TodoUsecase) DeleteTodoByID ¶
func (_m *TodoUsecase) DeleteTodoByID(_a0 context.Context, _a1 string) error
DeleteTodoByID provides a mock function with given fields: _a0, _a1
func (*TodoUsecase) FetchTodos ¶
FetchTodos provides a mock function with given fields: _a0
func (*TodoUsecase) GetTodoByID ¶
GetTodoByID provides a mock function with given fields: _a0, _a1
func (*TodoUsecase) ReplaceTodoByID ¶
func (_m *TodoUsecase) ReplaceTodoByID(_a0 context.Context, _a1 domain.TodoReplacePayload) error
ReplaceTodoByID provides a mock function with given fields: _a0, _a1
func (*TodoUsecase) UpdateTodoByID ¶
func (_m *TodoUsecase) UpdateTodoByID(_a0 context.Context, _a1 domain.TodoUpdatePayload) error
UpdateTodoByID provides a mock function with given fields: _a0, _a1