Documentation
¶
Index ¶
- Constants
- type Shelves
- type ShelvesBadRequest
- type ShelvesHandler
- type ShelvesHandlerFunc
- type ShelvesOK
- type ShelvesParams
- type ShelvesURL
- func (o *ShelvesURL) Build() (*url.URL, error)
- func (o *ShelvesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ShelvesURL) Must(u *url.URL, err error) *url.URL
- func (o *ShelvesURL) SetBasePath(bp string)
- func (o *ShelvesURL) String() string
- func (o *ShelvesURL) StringFull(scheme, host string) string
- func (o *ShelvesURL) WithBasePath(bp string) *ShelvesURL
Constants ¶
const ShelvesBadRequestCode int = 400
ShelvesBadRequestCode is the HTTP code returned for type ShelvesBadRequest
const ShelvesOKCode int = 200
ShelvesOKCode is the HTTP code returned for type ShelvesOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shelves ¶
type Shelves struct { Context *middleware.Context Handler ShelvesHandler }
Shelves swagger:route GET /shelves shelves shelves
Handler for show list shelves
func NewShelves ¶
func NewShelves(ctx *middleware.Context, handler ShelvesHandler) *Shelves
NewShelves creates a new http.Handler for the shelves operation
type ShelvesBadRequest ¶
ShelvesBadRequest Bad request
swagger:response shelvesBadRequest
func NewShelvesBadRequest ¶
func NewShelvesBadRequest() *ShelvesBadRequest
NewShelvesBadRequest creates ShelvesBadRequest with default headers values
func (*ShelvesBadRequest) SetPayload ¶
func (o *ShelvesBadRequest) SetPayload(payload *models.Fail)
SetPayload sets the payload to the shelves bad request response
func (*ShelvesBadRequest) WithPayload ¶
func (o *ShelvesBadRequest) WithPayload(payload *models.Fail) *ShelvesBadRequest
WithPayload adds the payload to the shelves bad request response
func (*ShelvesBadRequest) WriteResponse ¶
func (o *ShelvesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ShelvesHandler ¶
type ShelvesHandler interface {
Handle(ShelvesParams) middleware.Responder
}
ShelvesHandler interface for that can handle valid shelves params
type ShelvesHandlerFunc ¶
type ShelvesHandlerFunc func(ShelvesParams) middleware.Responder
ShelvesHandlerFunc turns a function with the right signature into a shelves handler
func (ShelvesHandlerFunc) Handle ¶
func (fn ShelvesHandlerFunc) Handle(params ShelvesParams) middleware.Responder
Handle executing the request and returning a response
type ShelvesOK ¶
ShelvesOK Successful response
swagger:response shelvesOK
func NewShelvesOK ¶
func NewShelvesOK() *ShelvesOK
NewShelvesOK creates ShelvesOK with default headers values
func (*ShelvesOK) SetPayload ¶
SetPayload sets the payload to the shelves o k response
func (*ShelvesOK) WithPayload ¶
WithPayload adds the payload to the shelves o k response
func (*ShelvesOK) WriteResponse ¶
func (o *ShelvesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ShelvesParams ¶
ShelvesParams contains all the bound params for the shelves operation typically these are obtained from a http.Request
swagger:parameters shelves
func NewShelvesParams ¶
func NewShelvesParams() ShelvesParams
NewShelvesParams creates a new ShelvesParams object no default values defined in spec.
func (*ShelvesParams) BindRequest ¶
func (o *ShelvesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewShelvesParams() beforehand.
type ShelvesURL ¶
type ShelvesURL struct {
// contains filtered or unexported fields
}
ShelvesURL generates an URL for the shelves operation
func (*ShelvesURL) Build ¶
func (o *ShelvesURL) Build() (*url.URL, error)
Build a url path and query string
func (*ShelvesURL) BuildFull ¶
func (o *ShelvesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ShelvesURL) SetBasePath ¶
func (o *ShelvesURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ShelvesURL) String ¶
func (o *ShelvesURL) String() string
String returns the string representation of the path with query string
func (*ShelvesURL) StringFull ¶
func (o *ShelvesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ShelvesURL) WithBasePath ¶
func (o *ShelvesURL) WithBasePath(bp string) *ShelvesURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string