Documentation ¶
Index ¶
- type Handler
- func (h *Handler) CreateTodo(c echo.Context) error
- func (h *Handler) DeleteTodoById(c echo.Context) error
- func (h *Handler) FetchTodos(c echo.Context) error
- func (h *Handler) GetTodoById(c echo.Context) error
- func (h *Handler) Graceful(c echo.Context) error
- func (h *Handler) Health(c echo.Context) error
- func (h *Handler) Home(c echo.Context) error
- func (h *Handler) JWT(c echo.Context) error
- func (h *Handler) ReplaceTodoById(c echo.Context) error
- func (h *Handler) UpdateTodoById(c echo.Context) error
- type HandlerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(hc HandlerConfig) *Handler
func (*Handler) CreateTodo ¶
func (*Handler) DeleteTodoById ¶
func (*Handler) FetchTodos ¶
func (*Handler) GetTodoById ¶
func (*Handler) ReplaceTodoById ¶
func (*Handler) UpdateTodoById ¶
type HandlerConfig ¶
type HandlerConfig struct { Config *config.Config Validator *validation.Validation Clock clock.Clocker Generator gen.Generator TodoUsecase port.TodoUsecase }
Click to show internal directories.
Click to hide internal directories.