handler

package
v0.0.0-...-af7f33b Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleHTTPHandler

type ArticleHTTPHandler struct {
	Usecase article.Usecase
}

ArticleHTTPHandler represents article http handler

func NewArticleHTTPHandler

func NewArticleHTTPHandler(usecase article.Usecase) *ArticleHTTPHandler

NewArticleHTTPHandler return new instances of article http handler

func (*ArticleHTTPHandler) HandleCreateArticle

func (h *ArticleHTTPHandler) HandleCreateArticle(c echo.Context) error

HandleCreateArticle handle create article

func (*ArticleHTTPHandler) HandleGetAllArticle

func (h *ArticleHTTPHandler) HandleGetAllArticle(c echo.Context) error

HandleGetAllArticle handle get all article

func (*ArticleHTTPHandler) HandleGetArticleByID

func (h *ArticleHTTPHandler) HandleGetArticleByID(c echo.Context) error

HandleGetArticleByID handle get article by id

type Response

type Response struct {
	Status  int         `json:"status"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Response represents http response

Jump to

Keyboard shortcuts

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