Documentation ¶
Index ¶
- Variables
- func AuthorizeMiddlewareWithRight(right ...auth.Right) echo.MiddlewareFunc
- func ErrorHandler(err error, c echo.Context)
- func HttpCacheMiddleware(ttl ...time.Duration) echo.MiddlewareFunc
- func SuccessHandlerMiddleware() echo.MiddlewareFunc
- type CtxResp
- func (c *CtxResp) BulkResponse(data []any) error
- func (c *CtxResp) CreatedResponse() error
- func (c *CtxResp) DeletedResponse() error
- func (c *CtxResp) PaginateResponse(data any, page, perPage int, total ...int) error
- func (c *CtxResp) SingleResponse(data any) error
- func (c *CtxResp) UpdatedResponse() error
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthMiddleware = echojwt.WithConfig(mwconfig.EchoJwtConfig())
Functions ¶
func ErrorHandler ¶
func ErrorHandler(err error, c echo.Context)
func HttpCacheMiddleware ¶
func SuccessHandlerMiddleware ¶
func SuccessHandlerMiddleware() echo.MiddlewareFunc
Types ¶
type CtxResp ¶
type CtxResp struct {
echo.Context
}
func (*CtxResp) BulkResponse ¶
func (*CtxResp) CreatedResponse ¶
func (*CtxResp) DeletedResponse ¶
func (*CtxResp) PaginateResponse ¶
func (*CtxResp) SingleResponse ¶
func (*CtxResp) UpdatedResponse ¶
Click to show internal directories.
Click to hide internal directories.