Documentation ¶
Index ¶
- func IsNoRowsFoundError(err error) bool
- func ReturnAuthenticationError(c *gin.Context, err error)
- func ReturnBadRequestError(c *gin.Context, err error)
- func ReturnBadRequestValidatorError(c *gin.Context, err validator.ValidationErrors)
- func ReturnConflictError(c *gin.Context, err error)
- func ReturnInternalServerError(c *gin.Context, err error)
- func ReturnNotFoundError(c *gin.Context, err error)
- type ApiError
- type ApiRequestValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNoRowsFoundError ¶
func ReturnBadRequestError ¶
func ReturnConflictError ¶
func ReturnNotFoundError ¶
Types ¶
type ApiError ¶
type ApiError struct { Error string `json:"error"` Validation []ApiRequestValidationError `json:"validation"` }
Click to show internal directories.
Click to hide internal directories.