Documentation
¶
Index ¶
- Constants
- func HTTPErrorHandler(err error, c echo.Context)
- type API
- func (a API) BindFailed(err error) error
- func (a API) Created(data interface{}) (int, model.MessageResponse)
- func (a API) Deleted(data interface{}) (int, model.MessageResponse)
- func (a API) Error(c echo.Context, who string, err error) *model.Error
- func (a API) OK(data interface{}) (int, model.MessageResponse)
- func (a API) Updated(data interface{}) (int, model.MessageResponse)
Constants ¶
View Source
const ( BindFailed = "bind_failed" Ok = "ok" RecordCreated = "record_created" RecordUpdated = "record_updated" RecordDeleted = "record_deleted" UnexpectedError = "unexpected_error" AuthError = "authorization_error" )
Variables ¶
This section is empty.
Functions ¶
func HTTPErrorHandler ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.