handler

package
v0.0.0-...-d481519 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (h *Handler) CreateTodo(c echo.Context) error

func (*Handler) DeleteTodoById

func (h *Handler) DeleteTodoById(c echo.Context) error

func (*Handler) FetchTodos

func (h *Handler) FetchTodos(c echo.Context) error

func (*Handler) GetTodoById

func (h *Handler) GetTodoById(c echo.Context) error

func (*Handler) Graceful

func (h *Handler) Graceful(c echo.Context) error

func (*Handler) Health

func (h *Handler) Health(c echo.Context) error

func (*Handler) Home

func (h *Handler) Home(c echo.Context) error

func (*Handler) JWT

func (h *Handler) JWT(c echo.Context) error

func (*Handler) ReplaceTodoById

func (h *Handler) ReplaceTodoById(c echo.Context) error

func (*Handler) UpdateTodoById

func (h *Handler) UpdateTodoById(c echo.Context) error

type HandlerConfig

type HandlerConfig struct {
	Config      *config.Config
	Validator   *validation.Validation
	Clock       clock.Clocker
	Generator   gen.Generator
	TodoUsecase port.TodoUsecase
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL