http

package
v0.0.0-...-fd68dcd Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContentHandler

func NewContentHandler(e *echo.Echo, r *echo.Group, us domain.ContentUsecase)

NewContentHandler will initialize the contents/ resources endpoint

Types

type ContentHandler

type ContentHandler struct {
	AUsecase domain.ContentUsecase
}

ContentHandler represent the httphandler for content

func (*ContentHandler) Delete

func (a *ContentHandler) Delete(c echo.Context) error

Delete will delete content by given param

func (*ContentHandler) FetchContents

func (a *ContentHandler) FetchContents(c echo.Context) error

FetchContents will fetch the content based on given params

func (*ContentHandler) GetByID

func (a *ContentHandler) GetByID(c echo.Context) error

GetByID will get content by given id

func (*ContentHandler) Store

func (a *ContentHandler) Store(c echo.Context) (err error)

Store will store the content by given request body

type ResponseError

type ResponseError struct {
	Message string `json:"message"`
}

ResponseError represent the reseponse error struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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