shelves

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ShelvesBadRequestCode int = 400

ShelvesBadRequestCode is the HTTP code returned for type ShelvesBadRequest

View Source
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

func (*Shelves) ServeHTTP

func (o *Shelves) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ShelvesBadRequest

type ShelvesBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.Fail `json:"body,omitempty"`
}

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

Handle executing the request and returning a response

type ShelvesOK

type ShelvesOK struct {

	/*
	  In: Body
	*/
	Payload models.Library `json:"body,omitempty"`
}

ShelvesOK Successful response

swagger:response shelvesOK

func NewShelvesOK

func NewShelvesOK() *ShelvesOK

NewShelvesOK creates ShelvesOK with default headers values

func (*ShelvesOK) SetPayload

func (o *ShelvesOK) SetPayload(payload models.Library)

SetPayload sets the payload to the shelves o k response

func (*ShelvesOK) WithPayload

func (o *ShelvesOK) WithPayload(payload models.Library) *ShelvesOK

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

type ShelvesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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) Must

func (o *ShelvesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL