Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultBadRequest ¶
type DefaultBadRequest struct {
Msg string `json:"msg"`
}
DefaultBadRequest represents a generic 400 response. It used internally by Swagger as the response when a request fails the validation defined in the Swagger yml file.
func (DefaultBadRequest) Error ¶
func (d DefaultBadRequest) Error() string
Error returns the validation error that caused the 400.
type DefaultInternalError ¶
type DefaultInternalError struct {
Msg string `json:"msg"`
}
DefaultInternalError represents a generic 500 response.
func (DefaultInternalError) Error ¶
func (d DefaultInternalError) Error() string
Error returns the internal error that caused the 500.
type DeleteBook404Output ¶
type DeleteBook404Output struct{}
DeleteBook404Output defines the 404 status code response for DeleteBook.
func (DeleteBook404Output) Error ¶
func (o DeleteBook404Output) Error() string
Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.
type DeleteBookInput ¶
type DeleteBookInput struct {
ID int64
}
DeleteBookInput holds the input parameters for a deleteBook operation.
func (DeleteBookInput) Validate ¶
func (i DeleteBookInput) Validate() error
Validate returns an error if any of the DeleteBookInput parameters don't satisfy the requirements from the swagger yml file.