Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArticleHandler ¶
func NewArticleHandler(e *echo.Echo, us domain.ArticleUsecase)
NewArticleHandler will initialize the articles/ resources endpoint
Types ¶
type ArticleHandler ¶
type ArticleHandler struct {
AUsecase domain.ArticleUsecase
}
ArticleHandler represent the httphandler for article
func (*ArticleHandler) Delete ¶
func (a *ArticleHandler) Delete(c echo.Context) error
Delete will delete article by given param
func (*ArticleHandler) FetchArticle ¶
func (a *ArticleHandler) FetchArticle(c echo.Context) error
FetchArticle will fetch the article based on given params
type ResponseError ¶
type ResponseError struct {
Message string `json:"message"`
}
ResponseError represent the reseponse error struct
Click to show internal directories.
Click to hide internal directories.