Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadRequest ¶
type BadRequest struct { Field string `json:"field,omitempty"` Reason string `json:"reason"` // contains filtered or unexported fields }
func BadRequestError ¶
func BadRequestError(field string, reason string, error error) *BadRequest
func (BadRequest) Error ¶
func (b BadRequest) Error() string
func (BadRequest) HTTPStatus ¶
func (b BadRequest) HTTPStatus() int
func (BadRequest) HasData ¶
func (b BadRequest) HasData() bool
type BadRequests ¶
type BadRequests struct {
Reasons []string `json:"reasons"`
}
func BadRequestsError ¶
func BadRequestsError(reasons []string) *BadRequests
func (BadRequests) Error ¶
func (b BadRequests) Error() string
func (BadRequests) HTTPStatus ¶
func (b BadRequests) HTTPStatus() int
func (BadRequests) HasData ¶
func (b BadRequests) HasData() bool
type NotFound ¶
type NotFound struct {
// contains filtered or unexported fields
}
func NotFoundError ¶
func (NotFound) HTTPStatus ¶
type ValidationError ¶
type ValidationError struct {
Errors ValidationErrors `json:"validation_errors"`
}
func (ValidationError) Error ¶
func (ve ValidationError) Error() string
func (ValidationError) HTTPStatus ¶
func (ve ValidationError) HTTPStatus() int
func (ValidationError) HasData ¶
func (ve ValidationError) HasData() bool
type ValidationErrors ¶
Click to show internal directories.
Click to hide internal directories.