Documentation ¶
Index ¶
- func AbortWithError(ctx *gin.Context, code int, err error, details string)
- type Error
- func NewBadRequest(message, details string) *Error
- func NewForbiddenError(message, details string) *Error
- func NewInternalError(err error, details string) *Error
- func NewNotFoundError(err error, details string) *Error
- func NewTooManyRequestsError(message, details string) *Error
- func NewUnauthorizedError(message, details string) *Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct { Status string `json:"status"` Code int `json:"code"` Message string `json:"message"` Details string `json:"details"` }
func NewBadRequest ¶
func NewForbiddenError ¶
func NewInternalError ¶
func NewNotFoundError ¶
func NewTooManyRequestsError ¶
func NewUnauthorizedError ¶
Click to show internal directories.
Click to hide internal directories.