Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct {
// The timestamp of the error.
// in: body
// required: true
Timestamp string `json:"timestamp"`
// The HTTP status code.
// in: body
// required: true
Status int `json:"status"`
// The status error message.
// in: body
// required: true
ErrMsg string `json:"error"`
// The error message.
// in: body
// required: true
Message string `json:"message"`
}
APIError is the error response for the API.
swagger:model APIError
func NewAPIError ¶
NewAPIError returns a new APIError.
func NewBadRequestError ¶
NewBadRequestError returns a new bad request error.
func NewInternalServerError ¶
NewInternalServerError returns a new internal server error.
func NewNotFoundError ¶
NewNotFoundError returns a new not found error.
func NewUnauthorizedError ¶
NewUnauthorizedError returns a new unauthorized error.
Click to show internal directories.
Click to hide internal directories.