Documentation ¶
Index ¶
- Constants
- type BookCSV
- type BookCSVDefault
- func (o *BookCSVDefault) SetPayload(payload *models.Error)
- func (o *BookCSVDefault) SetStatusCode(code int)
- func (o *BookCSVDefault) WithPayload(payload *models.Error) *BookCSVDefault
- func (o *BookCSVDefault) WithStatusCode(code int) *BookCSVDefault
- func (o *BookCSVDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BookCSVHandler
- type BookCSVHandlerFunc
- type BookCSVOK
- type BookCSVParams
- type BookCSVURL
- func (o *BookCSVURL) Build() (*url.URL, error)
- func (o *BookCSVURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BookCSVURL) Must(u *url.URL, err error) *url.URL
- func (o *BookCSVURL) SetBasePath(bp string)
- func (o *BookCSVURL) String() string
- func (o *BookCSVURL) StringFull(scheme, host string) string
- func (o *BookCSVURL) WithBasePath(bp string) *BookCSVURL
- type BookCheckin
- type BookCheckinDefault
- func (o *BookCheckinDefault) SetPayload(payload *models.Error)
- func (o *BookCheckinDefault) SetStatusCode(code int)
- func (o *BookCheckinDefault) WithPayload(payload *models.Error) *BookCheckinDefault
- func (o *BookCheckinDefault) WithStatusCode(code int) *BookCheckinDefault
- func (o *BookCheckinDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BookCheckinHandler
- type BookCheckinHandlerFunc
- type BookCheckinOK
- type BookCheckinParams
- type BookCheckinURL
- func (o *BookCheckinURL) Build() (*url.URL, error)
- func (o *BookCheckinURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BookCheckinURL) Must(u *url.URL, err error) *url.URL
- func (o *BookCheckinURL) SetBasePath(bp string)
- func (o *BookCheckinURL) String() string
- func (o *BookCheckinURL) StringFull(scheme, host string) string
- func (o *BookCheckinURL) WithBasePath(bp string) *BookCheckinURL
- type BookCheckout
- type BookCheckoutDefault
- func (o *BookCheckoutDefault) SetPayload(payload *models.Error)
- func (o *BookCheckoutDefault) SetStatusCode(code int)
- func (o *BookCheckoutDefault) WithPayload(payload *models.Error) *BookCheckoutDefault
- func (o *BookCheckoutDefault) WithStatusCode(code int) *BookCheckoutDefault
- func (o *BookCheckoutDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BookCheckoutHandler
- type BookCheckoutHandlerFunc
- type BookCheckoutOK
- type BookCheckoutParams
- type BookCheckoutURL
- func (o *BookCheckoutURL) Build() (*url.URL, error)
- func (o *BookCheckoutURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BookCheckoutURL) Must(u *url.URL, err error) *url.URL
- func (o *BookCheckoutURL) SetBasePath(bp string)
- func (o *BookCheckoutURL) String() string
- func (o *BookCheckoutURL) StringFull(scheme, host string) string
- func (o *BookCheckoutURL) WithBasePath(bp string) *BookCheckoutURL
- type BookDelete
- type BookDeleteDefault
- func (o *BookDeleteDefault) SetPayload(payload *models.Error)
- func (o *BookDeleteDefault) SetStatusCode(code int)
- func (o *BookDeleteDefault) WithPayload(payload *models.Error) *BookDeleteDefault
- func (o *BookDeleteDefault) WithStatusCode(code int) *BookDeleteDefault
- func (o *BookDeleteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BookDeleteHandler
- type BookDeleteHandlerFunc
- type BookDeleteOK
- type BookDeleteParams
- type BookDeleteURL
- func (o *BookDeleteURL) Build() (*url.URL, error)
- func (o *BookDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BookDeleteURL) Must(u *url.URL, err error) *url.URL
- func (o *BookDeleteURL) SetBasePath(bp string)
- func (o *BookDeleteURL) String() string
- func (o *BookDeleteURL) StringFull(scheme, host string) string
- func (o *BookDeleteURL) WithBasePath(bp string) *BookDeleteURL
- type BookHistory
- type BookHistoryDefault
- func (o *BookHistoryDefault) SetPayload(payload *models.Error)
- func (o *BookHistoryDefault) SetStatusCode(code int)
- func (o *BookHistoryDefault) WithPayload(payload *models.Error) *BookHistoryDefault
- func (o *BookHistoryDefault) WithStatusCode(code int) *BookHistoryDefault
- func (o *BookHistoryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BookHistoryHandler
- type BookHistoryHandlerFunc
- type BookHistoryOK
- type BookHistoryParams
- type BookHistoryURL
- func (o *BookHistoryURL) Build() (*url.URL, error)
- func (o *BookHistoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BookHistoryURL) Must(u *url.URL, err error) *url.URL
- func (o *BookHistoryURL) SetBasePath(bp string)
- func (o *BookHistoryURL) String() string
- func (o *BookHistoryURL) StringFull(scheme, host string) string
- func (o *BookHistoryURL) WithBasePath(bp string) *BookHistoryURL
- type BookRead
- type BookReadDefault
- func (o *BookReadDefault) SetPayload(payload *models.Error)
- func (o *BookReadDefault) SetStatusCode(code int)
- func (o *BookReadDefault) WithPayload(payload *models.Error) *BookReadDefault
- func (o *BookReadDefault) WithStatusCode(code int) *BookReadDefault
- func (o *BookReadDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BookReadHandler
- type BookReadHandlerFunc
- type BookReadOK
- type BookReadParams
- type BookReadURL
- func (o *BookReadURL) Build() (*url.URL, error)
- func (o *BookReadURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BookReadURL) Must(u *url.URL, err error) *url.URL
- func (o *BookReadURL) SetBasePath(bp string)
- func (o *BookReadURL) String() string
- func (o *BookReadURL) StringFull(scheme, host string) string
- func (o *BookReadURL) WithBasePath(bp string) *BookReadURL
- type BookStatus
- type BookStatusDefault
- func (o *BookStatusDefault) SetPayload(payload *models.Error)
- func (o *BookStatusDefault) SetStatusCode(code int)
- func (o *BookStatusDefault) WithPayload(payload *models.Error) *BookStatusDefault
- func (o *BookStatusDefault) WithStatusCode(code int) *BookStatusDefault
- func (o *BookStatusDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BookStatusHandler
- type BookStatusHandlerFunc
- type BookStatusOK
- type BookStatusParams
- type BookStatusURL
- func (o *BookStatusURL) Build() (*url.URL, error)
- func (o *BookStatusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BookStatusURL) Must(u *url.URL, err error) *url.URL
- func (o *BookStatusURL) SetBasePath(bp string)
- func (o *BookStatusURL) String() string
- func (o *BookStatusURL) StringFull(scheme, host string) string
- func (o *BookStatusURL) WithBasePath(bp string) *BookStatusURL
- type BookWrite
- type BookWriteDefault
- func (o *BookWriteDefault) SetPayload(payload *models.Error)
- func (o *BookWriteDefault) SetStatusCode(code int)
- func (o *BookWriteDefault) WithPayload(payload *models.Error) *BookWriteDefault
- func (o *BookWriteDefault) WithStatusCode(code int) *BookWriteDefault
- func (o *BookWriteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BookWriteHandler
- type BookWriteHandlerFunc
- type BookWriteOK
- type BookWriteParams
- type BookWriteParamsBodyAnon
- func (o *BookWriteParamsBodyAnon) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *BookWriteParamsBodyAnon) MarshalBinary() ([]byte, error)
- func (o *BookWriteParamsBodyAnon) UnmarshalBinary(b []byte) error
- func (o *BookWriteParamsBodyAnon) Validate(formats strfmt.Registry) error
- type BookWriteURL
- func (o *BookWriteURL) Build() (*url.URL, error)
- func (o *BookWriteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BookWriteURL) Must(u *url.URL, err error) *url.URL
- func (o *BookWriteURL) SetBasePath(bp string)
- func (o *BookWriteURL) String() string
- func (o *BookWriteURL) StringFull(scheme, host string) string
- func (o *BookWriteURL) WithBasePath(bp string) *BookWriteURL
Constants ¶
const BookCSVOKCode int = 200
BookCSVOKCode is the HTTP code returned for type BookCSVOK
const BookCheckinOKCode int = 200
BookCheckinOKCode is the HTTP code returned for type BookCheckinOK
const BookCheckoutOKCode int = 200
BookCheckoutOKCode is the HTTP code returned for type BookCheckoutOK
const BookDeleteOKCode int = 200
BookDeleteOKCode is the HTTP code returned for type BookDeleteOK
const BookHistoryOKCode int = 200
BookHistoryOKCode is the HTTP code returned for type BookHistoryOK
const BookReadOKCode int = 200
BookReadOKCode is the HTTP code returned for type BookReadOK
const BookStatusOKCode int = 200
BookStatusOKCode is the HTTP code returned for type BookStatusOK
const BookWriteOKCode int = 200
BookWriteOKCode is the HTTP code returned for type BookWriteOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookCSV ¶
type BookCSV struct { Context *middleware.Context Handler BookCSVHandler }
BookCSV swagger:route POST /api/csv api bookCSV
Get a CSV file for the Book data and most recent Status data of all books.
func NewBookCSV ¶
func NewBookCSV(ctx *middleware.Context, handler BookCSVHandler) *BookCSV
NewBookCSV creates a new http.Handler for the book c s v operation
type BookCSVDefault ¶
type BookCSVDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
BookCSVDefault Unexpected error.
swagger:response bookCSVDefault
func NewBookCSVDefault ¶
func NewBookCSVDefault(code int) *BookCSVDefault
NewBookCSVDefault creates BookCSVDefault with default headers values
func (*BookCSVDefault) SetPayload ¶
func (o *BookCSVDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the book c s v default response
func (*BookCSVDefault) SetStatusCode ¶
func (o *BookCSVDefault) SetStatusCode(code int)
SetStatusCode sets the status to the book c s v default response
func (*BookCSVDefault) WithPayload ¶
func (o *BookCSVDefault) WithPayload(payload *models.Error) *BookCSVDefault
WithPayload adds the payload to the book c s v default response
func (*BookCSVDefault) WithStatusCode ¶
func (o *BookCSVDefault) WithStatusCode(code int) *BookCSVDefault
WithStatusCode adds the status to the book c s v default response
func (*BookCSVDefault) WriteResponse ¶
func (o *BookCSVDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookCSVHandler ¶
type BookCSVHandler interface {
Handle(BookCSVParams) middleware.Responder
}
BookCSVHandler interface for that can handle valid book c s v params
type BookCSVHandlerFunc ¶
type BookCSVHandlerFunc func(BookCSVParams) middleware.Responder
BookCSVHandlerFunc turns a function with the right signature into a book c s v handler
func (BookCSVHandlerFunc) Handle ¶
func (fn BookCSVHandlerFunc) Handle(params BookCSVParams) middleware.Responder
Handle executing the request and returning a response
type BookCSVOK ¶
type BookCSVOK struct { /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
BookCSVOK The CSV file containing the Book data and most recent Status data of all books.
swagger:response bookCSVOK
func NewBookCSVOK ¶
func NewBookCSVOK() *BookCSVOK
NewBookCSVOK creates BookCSVOK with default headers values
func (*BookCSVOK) SetPayload ¶
func (o *BookCSVOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the book c s v o k response
func (*BookCSVOK) WithPayload ¶
func (o *BookCSVOK) WithPayload(payload io.ReadCloser) *BookCSVOK
WithPayload adds the payload to the book c s v o k response
func (*BookCSVOK) WriteResponse ¶
func (o *BookCSVOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookCSVParams ¶
BookCSVParams contains all the bound params for the book c s v operation typically these are obtained from a http.Request
swagger:parameters bookCSV
func NewBookCSVParams ¶
func NewBookCSVParams() BookCSVParams
NewBookCSVParams creates a new BookCSVParams object
There are no default values defined in the spec.
func (*BookCSVParams) BindRequest ¶
func (o *BookCSVParams) 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 NewBookCSVParams() beforehand.
type BookCSVURL ¶
type BookCSVURL struct {
// contains filtered or unexported fields
}
BookCSVURL generates an URL for the book c s v operation
func (*BookCSVURL) Build ¶
func (o *BookCSVURL) Build() (*url.URL, error)
Build a url path and query string
func (*BookCSVURL) BuildFull ¶
func (o *BookCSVURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BookCSVURL) SetBasePath ¶
func (o *BookCSVURL) 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 (*BookCSVURL) String ¶
func (o *BookCSVURL) String() string
String returns the string representation of the path with query string
func (*BookCSVURL) StringFull ¶
func (o *BookCSVURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BookCSVURL) WithBasePath ¶
func (o *BookCSVURL) WithBasePath(bp string) *BookCSVURL
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
type BookCheckin ¶
type BookCheckin struct { Context *middleware.Context Handler BookCheckinHandler }
BookCheckin swagger:route POST /api/checkin api bookCheckin
Check in the given books.
func NewBookCheckin ¶
func NewBookCheckin(ctx *middleware.Context, handler BookCheckinHandler) *BookCheckin
NewBookCheckin creates a new http.Handler for the book checkin operation
func (*BookCheckin) ServeHTTP ¶
func (o *BookCheckin) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BookCheckinDefault ¶
type BookCheckinDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
BookCheckinDefault Unexpected error.
swagger:response bookCheckinDefault
func NewBookCheckinDefault ¶
func NewBookCheckinDefault(code int) *BookCheckinDefault
NewBookCheckinDefault creates BookCheckinDefault with default headers values
func (*BookCheckinDefault) SetPayload ¶
func (o *BookCheckinDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the book checkin default response
func (*BookCheckinDefault) SetStatusCode ¶
func (o *BookCheckinDefault) SetStatusCode(code int)
SetStatusCode sets the status to the book checkin default response
func (*BookCheckinDefault) WithPayload ¶
func (o *BookCheckinDefault) WithPayload(payload *models.Error) *BookCheckinDefault
WithPayload adds the payload to the book checkin default response
func (*BookCheckinDefault) WithStatusCode ¶
func (o *BookCheckinDefault) WithStatusCode(code int) *BookCheckinDefault
WithStatusCode adds the status to the book checkin default response
func (*BookCheckinDefault) WriteResponse ¶
func (o *BookCheckinDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookCheckinHandler ¶
type BookCheckinHandler interface {
Handle(BookCheckinParams) middleware.Responder
}
BookCheckinHandler interface for that can handle valid book checkin params
type BookCheckinHandlerFunc ¶
type BookCheckinHandlerFunc func(BookCheckinParams) middleware.Responder
BookCheckinHandlerFunc turns a function with the right signature into a book checkin handler
func (BookCheckinHandlerFunc) Handle ¶
func (fn BookCheckinHandlerFunc) Handle(params BookCheckinParams) middleware.Responder
Handle executing the request and returning a response
type BookCheckinOK ¶
type BookCheckinOK struct { }
BookCheckinOK The books have been checked in.
swagger:response bookCheckinOK
func NewBookCheckinOK ¶
func NewBookCheckinOK() *BookCheckinOK
NewBookCheckinOK creates BookCheckinOK with default headers values
func (*BookCheckinOK) WriteResponse ¶
func (o *BookCheckinOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookCheckinParams ¶
type BookCheckinParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ISBNs of the books to check in. In: body */ Isbns []string }
BookCheckinParams contains all the bound params for the book checkin operation typically these are obtained from a http.Request
swagger:parameters bookCheckin
func NewBookCheckinParams ¶
func NewBookCheckinParams() BookCheckinParams
NewBookCheckinParams creates a new BookCheckinParams object
There are no default values defined in the spec.
func (*BookCheckinParams) BindRequest ¶
func (o *BookCheckinParams) 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 NewBookCheckinParams() beforehand.
type BookCheckinURL ¶
type BookCheckinURL struct {
// contains filtered or unexported fields
}
BookCheckinURL generates an URL for the book checkin operation
func (*BookCheckinURL) Build ¶
func (o *BookCheckinURL) Build() (*url.URL, error)
Build a url path and query string
func (*BookCheckinURL) BuildFull ¶
func (o *BookCheckinURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BookCheckinURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BookCheckinURL) SetBasePath ¶
func (o *BookCheckinURL) 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 (*BookCheckinURL) String ¶
func (o *BookCheckinURL) String() string
String returns the string representation of the path with query string
func (*BookCheckinURL) StringFull ¶
func (o *BookCheckinURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BookCheckinURL) WithBasePath ¶
func (o *BookCheckinURL) WithBasePath(bp string) *BookCheckinURL
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
type BookCheckout ¶
type BookCheckout struct { Context *middleware.Context Handler BookCheckoutHandler }
BookCheckout swagger:route POST /api/checkout api bookCheckout
Check out the given books.
func NewBookCheckout ¶
func NewBookCheckout(ctx *middleware.Context, handler BookCheckoutHandler) *BookCheckout
NewBookCheckout creates a new http.Handler for the book checkout operation
func (*BookCheckout) ServeHTTP ¶
func (o *BookCheckout) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BookCheckoutDefault ¶
type BookCheckoutDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
BookCheckoutDefault Unexpected error.
swagger:response bookCheckoutDefault
func NewBookCheckoutDefault ¶
func NewBookCheckoutDefault(code int) *BookCheckoutDefault
NewBookCheckoutDefault creates BookCheckoutDefault with default headers values
func (*BookCheckoutDefault) SetPayload ¶
func (o *BookCheckoutDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the book checkout default response
func (*BookCheckoutDefault) SetStatusCode ¶
func (o *BookCheckoutDefault) SetStatusCode(code int)
SetStatusCode sets the status to the book checkout default response
func (*BookCheckoutDefault) WithPayload ¶
func (o *BookCheckoutDefault) WithPayload(payload *models.Error) *BookCheckoutDefault
WithPayload adds the payload to the book checkout default response
func (*BookCheckoutDefault) WithStatusCode ¶
func (o *BookCheckoutDefault) WithStatusCode(code int) *BookCheckoutDefault
WithStatusCode adds the status to the book checkout default response
func (*BookCheckoutDefault) WriteResponse ¶
func (o *BookCheckoutDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookCheckoutHandler ¶
type BookCheckoutHandler interface {
Handle(BookCheckoutParams) middleware.Responder
}
BookCheckoutHandler interface for that can handle valid book checkout params
type BookCheckoutHandlerFunc ¶
type BookCheckoutHandlerFunc func(BookCheckoutParams) middleware.Responder
BookCheckoutHandlerFunc turns a function with the right signature into a book checkout handler
func (BookCheckoutHandlerFunc) Handle ¶
func (fn BookCheckoutHandlerFunc) Handle(params BookCheckoutParams) middleware.Responder
Handle executing the request and returning a response
type BookCheckoutOK ¶
type BookCheckoutOK struct { }
BookCheckoutOK The books have been checked out.
swagger:response bookCheckoutOK
func NewBookCheckoutOK ¶
func NewBookCheckoutOK() *BookCheckoutOK
NewBookCheckoutOK creates BookCheckoutOK with default headers values
func (*BookCheckoutOK) WriteResponse ¶
func (o *BookCheckoutOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookCheckoutParams ¶
type BookCheckoutParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ISBNs of the books to check out. In: body */ Isbns []string }
BookCheckoutParams contains all the bound params for the book checkout operation typically these are obtained from a http.Request
swagger:parameters bookCheckout
func NewBookCheckoutParams ¶
func NewBookCheckoutParams() BookCheckoutParams
NewBookCheckoutParams creates a new BookCheckoutParams object
There are no default values defined in the spec.
func (*BookCheckoutParams) BindRequest ¶
func (o *BookCheckoutParams) 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 NewBookCheckoutParams() beforehand.
type BookCheckoutURL ¶
type BookCheckoutURL struct {
// contains filtered or unexported fields
}
BookCheckoutURL generates an URL for the book checkout operation
func (*BookCheckoutURL) Build ¶
func (o *BookCheckoutURL) Build() (*url.URL, error)
Build a url path and query string
func (*BookCheckoutURL) BuildFull ¶
func (o *BookCheckoutURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BookCheckoutURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BookCheckoutURL) SetBasePath ¶
func (o *BookCheckoutURL) 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 (*BookCheckoutURL) String ¶
func (o *BookCheckoutURL) String() string
String returns the string representation of the path with query string
func (*BookCheckoutURL) StringFull ¶
func (o *BookCheckoutURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BookCheckoutURL) WithBasePath ¶
func (o *BookCheckoutURL) WithBasePath(bp string) *BookCheckoutURL
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
type BookDelete ¶
type BookDelete struct { Context *middleware.Context Handler BookDeleteHandler }
BookDelete swagger:route DELETE /api/books api bookDelete
Delete the given books.
func NewBookDelete ¶
func NewBookDelete(ctx *middleware.Context, handler BookDeleteHandler) *BookDelete
NewBookDelete creates a new http.Handler for the book delete operation
func (*BookDelete) ServeHTTP ¶
func (o *BookDelete) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BookDeleteDefault ¶
type BookDeleteDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
BookDeleteDefault Unexpected error.
swagger:response bookDeleteDefault
func NewBookDeleteDefault ¶
func NewBookDeleteDefault(code int) *BookDeleteDefault
NewBookDeleteDefault creates BookDeleteDefault with default headers values
func (*BookDeleteDefault) SetPayload ¶
func (o *BookDeleteDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the book delete default response
func (*BookDeleteDefault) SetStatusCode ¶
func (o *BookDeleteDefault) SetStatusCode(code int)
SetStatusCode sets the status to the book delete default response
func (*BookDeleteDefault) WithPayload ¶
func (o *BookDeleteDefault) WithPayload(payload *models.Error) *BookDeleteDefault
WithPayload adds the payload to the book delete default response
func (*BookDeleteDefault) WithStatusCode ¶
func (o *BookDeleteDefault) WithStatusCode(code int) *BookDeleteDefault
WithStatusCode adds the status to the book delete default response
func (*BookDeleteDefault) WriteResponse ¶
func (o *BookDeleteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookDeleteHandler ¶
type BookDeleteHandler interface {
Handle(BookDeleteParams) middleware.Responder
}
BookDeleteHandler interface for that can handle valid book delete params
type BookDeleteHandlerFunc ¶
type BookDeleteHandlerFunc func(BookDeleteParams) middleware.Responder
BookDeleteHandlerFunc turns a function with the right signature into a book delete handler
func (BookDeleteHandlerFunc) Handle ¶
func (fn BookDeleteHandlerFunc) Handle(params BookDeleteParams) middleware.Responder
Handle executing the request and returning a response
type BookDeleteOK ¶
type BookDeleteOK struct { }
BookDeleteOK The books have been deleted.
swagger:response bookDeleteOK
func NewBookDeleteOK ¶
func NewBookDeleteOK() *BookDeleteOK
NewBookDeleteOK creates BookDeleteOK with default headers values
func (*BookDeleteOK) WriteResponse ¶
func (o *BookDeleteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookDeleteParams ¶
type BookDeleteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ISBNs of the books to delete. Required: true In: body */ Isbns []string }
BookDeleteParams contains all the bound params for the book delete operation typically these are obtained from a http.Request
swagger:parameters bookDelete
func NewBookDeleteParams ¶
func NewBookDeleteParams() BookDeleteParams
NewBookDeleteParams creates a new BookDeleteParams object
There are no default values defined in the spec.
func (*BookDeleteParams) BindRequest ¶
func (o *BookDeleteParams) 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 NewBookDeleteParams() beforehand.
type BookDeleteURL ¶
type BookDeleteURL struct {
// contains filtered or unexported fields
}
BookDeleteURL generates an URL for the book delete operation
func (*BookDeleteURL) Build ¶
func (o *BookDeleteURL) Build() (*url.URL, error)
Build a url path and query string
func (*BookDeleteURL) BuildFull ¶
func (o *BookDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BookDeleteURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BookDeleteURL) SetBasePath ¶
func (o *BookDeleteURL) 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 (*BookDeleteURL) String ¶
func (o *BookDeleteURL) String() string
String returns the string representation of the path with query string
func (*BookDeleteURL) StringFull ¶
func (o *BookDeleteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BookDeleteURL) WithBasePath ¶
func (o *BookDeleteURL) WithBasePath(bp string) *BookDeleteURL
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
type BookHistory ¶
type BookHistory struct { Context *middleware.Context Handler BookHistoryHandler }
BookHistory swagger:route POST /api/history api bookHistory
Get the history for the given books.
func NewBookHistory ¶
func NewBookHistory(ctx *middleware.Context, handler BookHistoryHandler) *BookHistory
NewBookHistory creates a new http.Handler for the book history operation
func (*BookHistory) ServeHTTP ¶
func (o *BookHistory) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BookHistoryDefault ¶
type BookHistoryDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
BookHistoryDefault Unexpected error.
swagger:response bookHistoryDefault
func NewBookHistoryDefault ¶
func NewBookHistoryDefault(code int) *BookHistoryDefault
NewBookHistoryDefault creates BookHistoryDefault with default headers values
func (*BookHistoryDefault) SetPayload ¶
func (o *BookHistoryDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the book history default response
func (*BookHistoryDefault) SetStatusCode ¶
func (o *BookHistoryDefault) SetStatusCode(code int)
SetStatusCode sets the status to the book history default response
func (*BookHistoryDefault) WithPayload ¶
func (o *BookHistoryDefault) WithPayload(payload *models.Error) *BookHistoryDefault
WithPayload adds the payload to the book history default response
func (*BookHistoryDefault) WithStatusCode ¶
func (o *BookHistoryDefault) WithStatusCode(code int) *BookHistoryDefault
WithStatusCode adds the status to the book history default response
func (*BookHistoryDefault) WriteResponse ¶
func (o *BookHistoryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookHistoryHandler ¶
type BookHistoryHandler interface {
Handle(BookHistoryParams) middleware.Responder
}
BookHistoryHandler interface for that can handle valid book history params
type BookHistoryHandlerFunc ¶
type BookHistoryHandlerFunc func(BookHistoryParams) middleware.Responder
BookHistoryHandlerFunc turns a function with the right signature into a book history handler
func (BookHistoryHandlerFunc) Handle ¶
func (fn BookHistoryHandlerFunc) Handle(params BookHistoryParams) middleware.Responder
Handle executing the request and returning a response
type BookHistoryOK ¶
type BookHistoryOK struct { /* In: Body */ Payload map[string]models.History `json:"body,omitempty"` }
BookHistoryOK A mapping of book ISBNs to book history.
swagger:response bookHistoryOK
func NewBookHistoryOK ¶
func NewBookHistoryOK() *BookHistoryOK
NewBookHistoryOK creates BookHistoryOK with default headers values
func (*BookHistoryOK) SetPayload ¶
func (o *BookHistoryOK) SetPayload(payload map[string]models.History)
SetPayload sets the payload to the book history o k response
func (*BookHistoryOK) WithPayload ¶
func (o *BookHistoryOK) WithPayload(payload map[string]models.History) *BookHistoryOK
WithPayload adds the payload to the book history o k response
func (*BookHistoryOK) WriteResponse ¶
func (o *BookHistoryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookHistoryParams ¶
type BookHistoryParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ISBNs of the books to get the history for. In: body */ Isbns []string }
BookHistoryParams contains all the bound params for the book history operation typically these are obtained from a http.Request
swagger:parameters bookHistory
func NewBookHistoryParams ¶
func NewBookHistoryParams() BookHistoryParams
NewBookHistoryParams creates a new BookHistoryParams object
There are no default values defined in the spec.
func (*BookHistoryParams) BindRequest ¶
func (o *BookHistoryParams) 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 NewBookHistoryParams() beforehand.
type BookHistoryURL ¶
type BookHistoryURL struct {
// contains filtered or unexported fields
}
BookHistoryURL generates an URL for the book history operation
func (*BookHistoryURL) Build ¶
func (o *BookHistoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*BookHistoryURL) BuildFull ¶
func (o *BookHistoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BookHistoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BookHistoryURL) SetBasePath ¶
func (o *BookHistoryURL) 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 (*BookHistoryURL) String ¶
func (o *BookHistoryURL) String() string
String returns the string representation of the path with query string
func (*BookHistoryURL) StringFull ¶
func (o *BookHistoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BookHistoryURL) WithBasePath ¶
func (o *BookHistoryURL) WithBasePath(bp string) *BookHistoryURL
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
type BookRead ¶
type BookRead struct { Context *middleware.Context Handler BookReadHandler }
BookRead swagger:route POST /api/books api bookRead
Read the book data for the given ISBNs.
func NewBookRead ¶
func NewBookRead(ctx *middleware.Context, handler BookReadHandler) *BookRead
NewBookRead creates a new http.Handler for the book read operation
type BookReadDefault ¶
type BookReadDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
BookReadDefault Unexpected error.
swagger:response bookReadDefault
func NewBookReadDefault ¶
func NewBookReadDefault(code int) *BookReadDefault
NewBookReadDefault creates BookReadDefault with default headers values
func (*BookReadDefault) SetPayload ¶
func (o *BookReadDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the book read default response
func (*BookReadDefault) SetStatusCode ¶
func (o *BookReadDefault) SetStatusCode(code int)
SetStatusCode sets the status to the book read default response
func (*BookReadDefault) WithPayload ¶
func (o *BookReadDefault) WithPayload(payload *models.Error) *BookReadDefault
WithPayload adds the payload to the book read default response
func (*BookReadDefault) WithStatusCode ¶
func (o *BookReadDefault) WithStatusCode(code int) *BookReadDefault
WithStatusCode adds the status to the book read default response
func (*BookReadDefault) WriteResponse ¶
func (o *BookReadDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookReadHandler ¶
type BookReadHandler interface {
Handle(BookReadParams) middleware.Responder
}
BookReadHandler interface for that can handle valid book read params
type BookReadHandlerFunc ¶
type BookReadHandlerFunc func(BookReadParams) middleware.Responder
BookReadHandlerFunc turns a function with the right signature into a book read handler
func (BookReadHandlerFunc) Handle ¶
func (fn BookReadHandlerFunc) Handle(params BookReadParams) middleware.Responder
Handle executing the request and returning a response
type BookReadOK ¶
BookReadOK A map of ISBNs to book data for the requested books.
swagger:response bookReadOK
func NewBookReadOK ¶
func NewBookReadOK() *BookReadOK
NewBookReadOK creates BookReadOK with default headers values
func (*BookReadOK) SetPayload ¶
func (o *BookReadOK) SetPayload(payload map[string]models.Book)
SetPayload sets the payload to the book read o k response
func (*BookReadOK) WithPayload ¶
func (o *BookReadOK) WithPayload(payload map[string]models.Book) *BookReadOK
WithPayload adds the payload to the book read o k response
func (*BookReadOK) WriteResponse ¶
func (o *BookReadOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookReadParams ¶
type BookReadParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ISBNs of the books whose data is to be read. In: body */ Isbns []string }
BookReadParams contains all the bound params for the book read operation typically these are obtained from a http.Request
swagger:parameters bookRead
func NewBookReadParams ¶
func NewBookReadParams() BookReadParams
NewBookReadParams creates a new BookReadParams object
There are no default values defined in the spec.
func (*BookReadParams) BindRequest ¶
func (o *BookReadParams) 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 NewBookReadParams() beforehand.
type BookReadURL ¶
type BookReadURL struct {
// contains filtered or unexported fields
}
BookReadURL generates an URL for the book read operation
func (*BookReadURL) Build ¶
func (o *BookReadURL) Build() (*url.URL, error)
Build a url path and query string
func (*BookReadURL) BuildFull ¶
func (o *BookReadURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BookReadURL) SetBasePath ¶
func (o *BookReadURL) 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 (*BookReadURL) String ¶
func (o *BookReadURL) String() string
String returns the string representation of the path with query string
func (*BookReadURL) StringFull ¶
func (o *BookReadURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BookReadURL) WithBasePath ¶
func (o *BookReadURL) WithBasePath(bp string) *BookReadURL
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
type BookStatus ¶
type BookStatus struct { Context *middleware.Context Handler BookStatusHandler }
BookStatus swagger:route POST /api/status api bookStatus
Get the checked in or checked out status for the given books.
func NewBookStatus ¶
func NewBookStatus(ctx *middleware.Context, handler BookStatusHandler) *BookStatus
NewBookStatus creates a new http.Handler for the book status operation
func (*BookStatus) ServeHTTP ¶
func (o *BookStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BookStatusDefault ¶
type BookStatusDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
BookStatusDefault Unexpected error.
swagger:response bookStatusDefault
func NewBookStatusDefault ¶
func NewBookStatusDefault(code int) *BookStatusDefault
NewBookStatusDefault creates BookStatusDefault with default headers values
func (*BookStatusDefault) SetPayload ¶
func (o *BookStatusDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the book status default response
func (*BookStatusDefault) SetStatusCode ¶
func (o *BookStatusDefault) SetStatusCode(code int)
SetStatusCode sets the status to the book status default response
func (*BookStatusDefault) WithPayload ¶
func (o *BookStatusDefault) WithPayload(payload *models.Error) *BookStatusDefault
WithPayload adds the payload to the book status default response
func (*BookStatusDefault) WithStatusCode ¶
func (o *BookStatusDefault) WithStatusCode(code int) *BookStatusDefault
WithStatusCode adds the status to the book status default response
func (*BookStatusDefault) WriteResponse ¶
func (o *BookStatusDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookStatusHandler ¶
type BookStatusHandler interface {
Handle(BookStatusParams) middleware.Responder
}
BookStatusHandler interface for that can handle valid book status params
type BookStatusHandlerFunc ¶
type BookStatusHandlerFunc func(BookStatusParams) middleware.Responder
BookStatusHandlerFunc turns a function with the right signature into a book status handler
func (BookStatusHandlerFunc) Handle ¶
func (fn BookStatusHandlerFunc) Handle(params BookStatusParams) middleware.Responder
Handle executing the request and returning a response
type BookStatusOK ¶
type BookStatusOK struct { /* In: Body */ Payload map[string]models.Status `json:"body,omitempty"` }
BookStatusOK A mapping of book ISBNs to book status.
swagger:response bookStatusOK
func NewBookStatusOK ¶
func NewBookStatusOK() *BookStatusOK
NewBookStatusOK creates BookStatusOK with default headers values
func (*BookStatusOK) SetPayload ¶
func (o *BookStatusOK) SetPayload(payload map[string]models.Status)
SetPayload sets the payload to the book status o k response
func (*BookStatusOK) WithPayload ¶
func (o *BookStatusOK) WithPayload(payload map[string]models.Status) *BookStatusOK
WithPayload adds the payload to the book status o k response
func (*BookStatusOK) WriteResponse ¶
func (o *BookStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookStatusParams ¶
type BookStatusParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ISBNs of the books to get the status for. In: body */ Isbns []string }
BookStatusParams contains all the bound params for the book status operation typically these are obtained from a http.Request
swagger:parameters bookStatus
func NewBookStatusParams ¶
func NewBookStatusParams() BookStatusParams
NewBookStatusParams creates a new BookStatusParams object
There are no default values defined in the spec.
func (*BookStatusParams) BindRequest ¶
func (o *BookStatusParams) 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 NewBookStatusParams() beforehand.
type BookStatusURL ¶
type BookStatusURL struct {
// contains filtered or unexported fields
}
BookStatusURL generates an URL for the book status operation
func (*BookStatusURL) Build ¶
func (o *BookStatusURL) Build() (*url.URL, error)
Build a url path and query string
func (*BookStatusURL) BuildFull ¶
func (o *BookStatusURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BookStatusURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BookStatusURL) SetBasePath ¶
func (o *BookStatusURL) 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 (*BookStatusURL) String ¶
func (o *BookStatusURL) String() string
String returns the string representation of the path with query string
func (*BookStatusURL) StringFull ¶
func (o *BookStatusURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BookStatusURL) WithBasePath ¶
func (o *BookStatusURL) WithBasePath(bp string) *BookStatusURL
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
type BookWrite ¶
type BookWrite struct { Context *middleware.Context Handler BookWriteHandler }
BookWrite swagger:route POST /api/books/{operation} api bookWrite
Insert, update, or upsert books to the library.
func NewBookWrite ¶
func NewBookWrite(ctx *middleware.Context, handler BookWriteHandler) *BookWrite
NewBookWrite creates a new http.Handler for the book write operation
type BookWriteDefault ¶
type BookWriteDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
BookWriteDefault Unexpected error.
swagger:response bookWriteDefault
func NewBookWriteDefault ¶
func NewBookWriteDefault(code int) *BookWriteDefault
NewBookWriteDefault creates BookWriteDefault with default headers values
func (*BookWriteDefault) SetPayload ¶
func (o *BookWriteDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the book write default response
func (*BookWriteDefault) SetStatusCode ¶
func (o *BookWriteDefault) SetStatusCode(code int)
SetStatusCode sets the status to the book write default response
func (*BookWriteDefault) WithPayload ¶
func (o *BookWriteDefault) WithPayload(payload *models.Error) *BookWriteDefault
WithPayload adds the payload to the book write default response
func (*BookWriteDefault) WithStatusCode ¶
func (o *BookWriteDefault) WithStatusCode(code int) *BookWriteDefault
WithStatusCode adds the status to the book write default response
func (*BookWriteDefault) WriteResponse ¶
func (o *BookWriteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookWriteHandler ¶
type BookWriteHandler interface {
Handle(BookWriteParams) middleware.Responder
}
BookWriteHandler interface for that can handle valid book write params
type BookWriteHandlerFunc ¶
type BookWriteHandlerFunc func(BookWriteParams) middleware.Responder
BookWriteHandlerFunc turns a function with the right signature into a book write handler
func (BookWriteHandlerFunc) Handle ¶
func (fn BookWriteHandlerFunc) Handle(params BookWriteParams) middleware.Responder
Handle executing the request and returning a response
type BookWriteOK ¶
type BookWriteOK struct { }
BookWriteOK The books have been written to the library.
swagger:response bookWriteOK
func NewBookWriteOK ¶
func NewBookWriteOK() *BookWriteOK
NewBookWriteOK creates BookWriteOK with default headers values
func (*BookWriteOK) WriteResponse ¶
func (o *BookWriteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BookWriteParams ¶
type BookWriteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The mapping of ISBNs to books and their quantities to insert, update, or upsert to the library. Required: true In: body */ BookQuantities map[string]BookWriteParamsBodyAnon /*The write operation to perform with the book data. Required: true In: path */ Operation string }
BookWriteParams contains all the bound params for the book write operation typically these are obtained from a http.Request
swagger:parameters bookWrite
func NewBookWriteParams ¶
func NewBookWriteParams() BookWriteParams
NewBookWriteParams creates a new BookWriteParams object
There are no default values defined in the spec.
func (*BookWriteParams) BindRequest ¶
func (o *BookWriteParams) 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 NewBookWriteParams() beforehand.
type BookWriteParamsBodyAnon ¶
type BookWriteParamsBodyAnon struct { // book Book models.Book `json:"book,omitempty"` // quantity Quantity uint64 `json:"quantity,omitempty"` }
BookWriteParamsBodyAnon book write params body anon
swagger:model BookWriteParamsBodyAnon
func (*BookWriteParamsBodyAnon) ContextValidate ¶
func (o *BookWriteParamsBodyAnon) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this book write params body anon based on the context it is used
func (*BookWriteParamsBodyAnon) MarshalBinary ¶
func (o *BookWriteParamsBodyAnon) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BookWriteParamsBodyAnon) UnmarshalBinary ¶
func (o *BookWriteParamsBodyAnon) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BookWriteURL ¶
type BookWriteURL struct { Operation string // contains filtered or unexported fields }
BookWriteURL generates an URL for the book write operation
func (*BookWriteURL) Build ¶
func (o *BookWriteURL) Build() (*url.URL, error)
Build a url path and query string
func (*BookWriteURL) BuildFull ¶
func (o *BookWriteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BookWriteURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BookWriteURL) SetBasePath ¶
func (o *BookWriteURL) 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 (*BookWriteURL) String ¶
func (o *BookWriteURL) String() string
String returns the string representation of the path with query string
func (*BookWriteURL) StringFull ¶
func (o *BookWriteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BookWriteURL) WithBasePath ¶
func (o *BookWriteURL) WithBasePath(bp string) *BookWriteURL
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
Source Files ¶
- book_c_s_v.go
- book_c_s_v_parameters.go
- book_c_s_v_responses.go
- book_c_s_v_urlbuilder.go
- book_checkin.go
- book_checkin_parameters.go
- book_checkin_responses.go
- book_checkin_urlbuilder.go
- book_checkout.go
- book_checkout_parameters.go
- book_checkout_responses.go
- book_checkout_urlbuilder.go
- book_delete.go
- book_delete_parameters.go
- book_delete_responses.go
- book_delete_urlbuilder.go
- book_history.go
- book_history_parameters.go
- book_history_responses.go
- book_history_urlbuilder.go
- book_read.go
- book_read_parameters.go
- book_read_responses.go
- book_read_urlbuilder.go
- book_status.go
- book_status_parameters.go
- book_status_responses.go
- book_status_urlbuilder.go
- book_write.go
- book_write_parameters.go
- book_write_responses.go
- book_write_urlbuilder.go