Documentation ¶
Index ¶
- func BadRequest(c echo.Context, message string, data interface{}, error interface{}) error
- func InternalServerError(c echo.Context, message string, data interface{}, error interface{}) error
- func NotFound(c echo.Context, message string, data interface{}, error interface{}) error
- func Paginate(c echo.Context, message string, paginator *paging.OffsetPaginator, ...) error
- func SingleData(c echo.Context, message string, data interface{}, error interface{}) error
- func Unauthorized(c echo.Context, message string, data interface{}, error interface{}) error
- func ValidationError(c echo.Context, message string, data interface{}, error interface{}) error
- type APIError
- type Link
- type Meta
- type MetaPaginator
- type Paginator
- type Paging
- type Single
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func InternalServerError ¶
func SingleData ¶
func Unauthorized ¶
Types ¶
type APIError ¶
type APIError struct { Code int `json:"code,omitempty"` Type string `json:"type,omitempty"` Field string `json:"field,omitempty"` Message string `json:"message"` }
APIError
type MetaPaginator ¶
type Paging ¶
type Paging struct { MetaPaginator MetaPaginator `json:"meta"` Data interface{} `json:"data, omitempty"` }
Click to show internal directories.
Click to hide internal directories.