Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateStruct ¶
Types ¶
type ITodoService ¶ added in v0.3.0
func NewService ¶ added in v0.3.0
func NewService(todoStore TodoStore) ITodoService
type TodoHandler ¶
type TodoHandler struct {
Service ITodoService
}
func (*TodoHandler) CreateTodo ¶
func (h *TodoHandler) CreateTodo(c *fiber.Ctx) error
CreateTodo godoc @Summary CreateTodo @Description CreateTodo @Tags todo @Accept json @Param customername body createTodoRequest true "customername" @Produce json @Success 201 @Router /customers [post]
func (*TodoHandler) GetAll ¶
func (h *TodoHandler) GetAll(c *fiber.Ctx) error
GetAll godoc @Summary Get all todo @Description get all todo @Tags todo @Produce json @Success 200 {array} CustomerCompleteInfo @Router /todos [get]
Click to show internal directories.
Click to hide internal directories.