handlers

package
v0.0.0-...-c60c4f7 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProjectHandler

func NewProjectHandler(g *echo.Group, middManager *middlewares.MiddlewareManager, projectUsecase usecases.ProjectUsecase)

NewProjectHandler will initialize the project resources endpoint

Types

type ProjectHandler

type ProjectHandler struct {
	ProjectUC usecases.ProjectUsecase
}

func (*ProjectHandler) Create

func (h *ProjectHandler) Create(c echo.Context) wrapper.Response

Create will store the Project by given request body

func (*ProjectHandler) Delete

func (h *ProjectHandler) Delete(c echo.Context) wrapper.Response

Delete will delete project by given param

func (*ProjectHandler) Fetch

func (h *ProjectHandler) Fetch(c echo.Context) wrapper.Response

Fetch will fetch the Project

func (*ProjectHandler) GetByID

func (h *ProjectHandler) GetByID(c echo.Context) wrapper.Response

GetByID will get Project by given id

func (*ProjectHandler) Update

func (h *ProjectHandler) Update(c echo.Context) wrapper.Response

Update will get project by given request body

Jump to

Keyboard shortcuts

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