Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Status int `json:"status"` FailedReasons []FailedReason `json:"messages"` // contains filtered or unexported fields }
ErrorResponse - error response
func NewBadRequestError ¶
func NewBadRequestError(err error) *ErrorResponse
NewBadRequestError - bad request error
func NewInternalError ¶
func NewInternalError(err error) *ErrorResponse
NewInternalError - internal server error
func NewValidationError ¶
func NewValidationError(er error) *ErrorResponse
NewValidationError - validation error
type FailedReason ¶
type FailedReason struct {
Message string `json:"message"`
}
FailedReason - failed reason
Click to show internal directories.
Click to hide internal directories.