Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(r *httprouter.Router, prefix string, l Logger, rf responseMapper.ResponseFormatter, taskRepo usecase.TaskRepo)
Handle adds task handling endpoints
Types ¶
type Formatter ¶
type Formatter interface { ClearedCompleted(count int) ([]byte, error) TaskID(id usecase.TaskID) ([]byte, error) Task(td *usecase.TaskData) ([]byte, error) TaskMap(ts map[usecase.TaskID]*task.Task) ([]byte, error) responseMapper.ResponseFormatter }
Formatter defines the formatter interface for output responses
Click to show internal directories.
Click to hide internal directories.