handler

package
v0.0.0-...-0aa3dee Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthHandler

type HealthHandler struct {
	// contains filtered or unexported fields
}

func NewHealthHandler

func NewHealthHandler(cfg *config.Config) *HealthHandler

func (*HealthHandler) Health

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

HealthCheck godoc @Summary Show the status of server. @Description get the status of server. @Tags root @Accept Application/json @Produce json @Success 200 {object} helper.BaseHttpResponse "Success" @Router /v1/health [get]

type TaskHandler

type TaskHandler struct {
	// contains filtered or unexported fields
}

func NewTaskHandler

func NewTaskHandler(cfg *config.Config) *TaskHandler

func (*TaskHandler) CreateTask

func (h *TaskHandler) CreateTask(ctx echo.Context) error

CreateTask godoc @Summary Create a Task @Description Create a Task @Tags Task @Accept json @produces json @Param Request body dto.CreateTaskRequest true "Create a Task" @Success 201 {object} helper.BaseHttpResponse{result=dto.CreateTaskResponse} "Task response" @Failure 400 {object} helper.BaseHttpResponse "Bad request" @Router /v1/tasks [post]

func (*TaskHandler) GetById

func (h *TaskHandler) GetById(ctx echo.Context) error

GetTask godoc @Summary Get Task @Description Get Task @Tags Task @Accept json @produces json @Param id path string true "Id" @Success 201 {object} helper.BaseHttpResponse{result=dto.CreateTaskResponse} "Task response" @Failure 400 {object} helper.BaseHttpResponse "Bad request" @Router /v1/tasks/{id} [get]

Jump to

Keyboard shortcuts

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