Documentation ¶
Index ¶
- Constants
- type DeleteOrderID
- type DeleteOrderIDAccepted
- type DeleteOrderIDBadRequest
- type DeleteOrderIDHandler
- type DeleteOrderIDHandlerFunc
- type DeleteOrderIDInternalServerError
- func (o *DeleteOrderIDInternalServerError) SetPayload(payload *models.StatusResponse)
- func (o *DeleteOrderIDInternalServerError) WithPayload(payload *models.StatusResponse) *DeleteOrderIDInternalServerError
- func (o *DeleteOrderIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteOrderIDNotFound
- type DeleteOrderIDParams
- type DeleteOrderIDURL
- func (o *DeleteOrderIDURL) Build() (*url.URL, error)
- func (o *DeleteOrderIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteOrderIDURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteOrderIDURL) SetBasePath(bp string)
- func (o *DeleteOrderIDURL) String() string
- func (o *DeleteOrderIDURL) StringFull(scheme, host string) string
- func (o *DeleteOrderIDURL) WithBasePath(bp string) *DeleteOrderIDURL
- type GetOrderID
- type GetOrderIDBadRequest
- type GetOrderIDHandler
- type GetOrderIDHandlerFunc
- type GetOrderIDInternalServerError
- func (o *GetOrderIDInternalServerError) SetPayload(payload *models.StatusResponse)
- func (o *GetOrderIDInternalServerError) WithPayload(payload *models.StatusResponse) *GetOrderIDInternalServerError
- func (o *GetOrderIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetOrderIDNotFound
- type GetOrderIDOK
- type GetOrderIDParams
- type GetOrderIDURL
- func (o *GetOrderIDURL) Build() (*url.URL, error)
- func (o *GetOrderIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetOrderIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetOrderIDURL) SetBasePath(bp string)
- func (o *GetOrderIDURL) String() string
- func (o *GetOrderIDURL) StringFull(scheme, host string) string
- func (o *GetOrderIDURL) WithBasePath(bp string) *GetOrderIDURL
- type PostOrder
- type PostOrderBadRequest
- type PostOrderCreated
- type PostOrderHandler
- type PostOrderHandlerFunc
- type PostOrderInternalServerError
- type PostOrderParams
- type PostOrderURL
- func (o *PostOrderURL) Build() (*url.URL, error)
- func (o *PostOrderURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostOrderURL) Must(u *url.URL, err error) *url.URL
- func (o *PostOrderURL) SetBasePath(bp string)
- func (o *PostOrderURL) String() string
- func (o *PostOrderURL) StringFull(scheme, host string) string
- func (o *PostOrderURL) WithBasePath(bp string) *PostOrderURL
Constants ¶
const DeleteOrderIDAcceptedCode int = 202
DeleteOrderIDAcceptedCode is the HTTP code returned for type DeleteOrderIDAccepted
const DeleteOrderIDBadRequestCode int = 400
DeleteOrderIDBadRequestCode is the HTTP code returned for type DeleteOrderIDBadRequest
const DeleteOrderIDInternalServerErrorCode int = 500
DeleteOrderIDInternalServerErrorCode is the HTTP code returned for type DeleteOrderIDInternalServerError
const DeleteOrderIDNotFoundCode int = 404
DeleteOrderIDNotFoundCode is the HTTP code returned for type DeleteOrderIDNotFound
const GetOrderIDBadRequestCode int = 400
GetOrderIDBadRequestCode is the HTTP code returned for type GetOrderIDBadRequest
const GetOrderIDInternalServerErrorCode int = 500
GetOrderIDInternalServerErrorCode is the HTTP code returned for type GetOrderIDInternalServerError
const GetOrderIDNotFoundCode int = 404
GetOrderIDNotFoundCode is the HTTP code returned for type GetOrderIDNotFound
const GetOrderIDOKCode int = 200
GetOrderIDOKCode is the HTTP code returned for type GetOrderIDOK
const PostOrderBadRequestCode int = 400
PostOrderBadRequestCode is the HTTP code returned for type PostOrderBadRequest
const PostOrderCreatedCode int = 201
PostOrderCreatedCode is the HTTP code returned for type PostOrderCreated
const PostOrderInternalServerErrorCode int = 500
PostOrderInternalServerErrorCode is the HTTP code returned for type PostOrderInternalServerError
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteOrderID ¶
type DeleteOrderID struct { Context *middleware.Context Handler DeleteOrderIDHandler }
DeleteOrderID swagger:route DELETE /order/{id} order deleteOrderId
cancel order
func NewDeleteOrderID ¶
func NewDeleteOrderID(ctx *middleware.Context, handler DeleteOrderIDHandler) *DeleteOrderID
NewDeleteOrderID creates a new http.Handler for the delete order ID operation
func (*DeleteOrderID) ServeHTTP ¶
func (o *DeleteOrderID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteOrderIDAccepted ¶
type DeleteOrderIDAccepted struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
DeleteOrderIDAccepted Canceled
swagger:response deleteOrderIdAccepted
func NewDeleteOrderIDAccepted ¶
func NewDeleteOrderIDAccepted() *DeleteOrderIDAccepted
NewDeleteOrderIDAccepted creates DeleteOrderIDAccepted with default headers values
func (*DeleteOrderIDAccepted) SetPayload ¶
func (o *DeleteOrderIDAccepted) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the delete order Id accepted response
func (*DeleteOrderIDAccepted) WithPayload ¶
func (o *DeleteOrderIDAccepted) WithPayload(payload *models.StatusResponse) *DeleteOrderIDAccepted
WithPayload adds the payload to the delete order Id accepted response
func (*DeleteOrderIDAccepted) WriteResponse ¶
func (o *DeleteOrderIDAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteOrderIDBadRequest ¶
type DeleteOrderIDBadRequest struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
DeleteOrderIDBadRequest Bad request
swagger:response deleteOrderIdBadRequest
func NewDeleteOrderIDBadRequest ¶
func NewDeleteOrderIDBadRequest() *DeleteOrderIDBadRequest
NewDeleteOrderIDBadRequest creates DeleteOrderIDBadRequest with default headers values
func (*DeleteOrderIDBadRequest) SetPayload ¶
func (o *DeleteOrderIDBadRequest) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the delete order Id bad request response
func (*DeleteOrderIDBadRequest) WithPayload ¶
func (o *DeleteOrderIDBadRequest) WithPayload(payload *models.StatusResponse) *DeleteOrderIDBadRequest
WithPayload adds the payload to the delete order Id bad request response
func (*DeleteOrderIDBadRequest) WriteResponse ¶
func (o *DeleteOrderIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteOrderIDHandler ¶
type DeleteOrderIDHandler interface {
Handle(DeleteOrderIDParams) middleware.Responder
}
DeleteOrderIDHandler interface for that can handle valid delete order ID params
type DeleteOrderIDHandlerFunc ¶
type DeleteOrderIDHandlerFunc func(DeleteOrderIDParams) middleware.Responder
DeleteOrderIDHandlerFunc turns a function with the right signature into a delete order ID handler
func (DeleteOrderIDHandlerFunc) Handle ¶
func (fn DeleteOrderIDHandlerFunc) Handle(params DeleteOrderIDParams) middleware.Responder
Handle executing the request and returning a response
type DeleteOrderIDInternalServerError ¶
type DeleteOrderIDInternalServerError struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
DeleteOrderIDInternalServerError Internal server error
swagger:response deleteOrderIdInternalServerError
func NewDeleteOrderIDInternalServerError ¶
func NewDeleteOrderIDInternalServerError() *DeleteOrderIDInternalServerError
NewDeleteOrderIDInternalServerError creates DeleteOrderIDInternalServerError with default headers values
func (*DeleteOrderIDInternalServerError) SetPayload ¶
func (o *DeleteOrderIDInternalServerError) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the delete order Id internal server error response
func (*DeleteOrderIDInternalServerError) WithPayload ¶
func (o *DeleteOrderIDInternalServerError) WithPayload(payload *models.StatusResponse) *DeleteOrderIDInternalServerError
WithPayload adds the payload to the delete order Id internal server error response
func (*DeleteOrderIDInternalServerError) WriteResponse ¶
func (o *DeleteOrderIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteOrderIDNotFound ¶
type DeleteOrderIDNotFound struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
DeleteOrderIDNotFound Not found
swagger:response deleteOrderIdNotFound
func NewDeleteOrderIDNotFound ¶
func NewDeleteOrderIDNotFound() *DeleteOrderIDNotFound
NewDeleteOrderIDNotFound creates DeleteOrderIDNotFound with default headers values
func (*DeleteOrderIDNotFound) SetPayload ¶
func (o *DeleteOrderIDNotFound) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the delete order Id not found response
func (*DeleteOrderIDNotFound) WithPayload ¶
func (o *DeleteOrderIDNotFound) WithPayload(payload *models.StatusResponse) *DeleteOrderIDNotFound
WithPayload adds the payload to the delete order Id not found response
func (*DeleteOrderIDNotFound) WriteResponse ¶
func (o *DeleteOrderIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteOrderIDParams ¶
type DeleteOrderIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The order ID. Required: true In: path */ ID string }
DeleteOrderIDParams contains all the bound params for the delete order ID operation typically these are obtained from a http.Request
swagger:parameters DeleteOrderID
func NewDeleteOrderIDParams ¶
func NewDeleteOrderIDParams() DeleteOrderIDParams
NewDeleteOrderIDParams creates a new DeleteOrderIDParams object no default values defined in spec.
func (*DeleteOrderIDParams) BindRequest ¶
func (o *DeleteOrderIDParams) 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 NewDeleteOrderIDParams() beforehand.
type DeleteOrderIDURL ¶
type DeleteOrderIDURL struct { ID string // contains filtered or unexported fields }
DeleteOrderIDURL generates an URL for the delete order ID operation
func (*DeleteOrderIDURL) Build ¶
func (o *DeleteOrderIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteOrderIDURL) BuildFull ¶
func (o *DeleteOrderIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteOrderIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteOrderIDURL) SetBasePath ¶
func (o *DeleteOrderIDURL) 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 (*DeleteOrderIDURL) String ¶
func (o *DeleteOrderIDURL) String() string
String returns the string representation of the path with query string
func (*DeleteOrderIDURL) StringFull ¶
func (o *DeleteOrderIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteOrderIDURL) WithBasePath ¶
func (o *DeleteOrderIDURL) WithBasePath(bp string) *DeleteOrderIDURL
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 GetOrderID ¶
type GetOrderID struct { Context *middleware.Context Handler GetOrderIDHandler }
GetOrderID swagger:route GET /order/{id} order getOrderId
get order
func NewGetOrderID ¶
func NewGetOrderID(ctx *middleware.Context, handler GetOrderIDHandler) *GetOrderID
NewGetOrderID creates a new http.Handler for the get order ID operation
func (*GetOrderID) ServeHTTP ¶
func (o *GetOrderID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetOrderIDBadRequest ¶
type GetOrderIDBadRequest struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
GetOrderIDBadRequest Bad request
swagger:response getOrderIdBadRequest
func NewGetOrderIDBadRequest ¶
func NewGetOrderIDBadRequest() *GetOrderIDBadRequest
NewGetOrderIDBadRequest creates GetOrderIDBadRequest with default headers values
func (*GetOrderIDBadRequest) SetPayload ¶
func (o *GetOrderIDBadRequest) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the get order Id bad request response
func (*GetOrderIDBadRequest) WithPayload ¶
func (o *GetOrderIDBadRequest) WithPayload(payload *models.StatusResponse) *GetOrderIDBadRequest
WithPayload adds the payload to the get order Id bad request response
func (*GetOrderIDBadRequest) WriteResponse ¶
func (o *GetOrderIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetOrderIDHandler ¶
type GetOrderIDHandler interface {
Handle(GetOrderIDParams) middleware.Responder
}
GetOrderIDHandler interface for that can handle valid get order ID params
type GetOrderIDHandlerFunc ¶
type GetOrderIDHandlerFunc func(GetOrderIDParams) middleware.Responder
GetOrderIDHandlerFunc turns a function with the right signature into a get order ID handler
func (GetOrderIDHandlerFunc) Handle ¶
func (fn GetOrderIDHandlerFunc) Handle(params GetOrderIDParams) middleware.Responder
Handle executing the request and returning a response
type GetOrderIDInternalServerError ¶
type GetOrderIDInternalServerError struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
GetOrderIDInternalServerError Internal server error
swagger:response getOrderIdInternalServerError
func NewGetOrderIDInternalServerError ¶
func NewGetOrderIDInternalServerError() *GetOrderIDInternalServerError
NewGetOrderIDInternalServerError creates GetOrderIDInternalServerError with default headers values
func (*GetOrderIDInternalServerError) SetPayload ¶
func (o *GetOrderIDInternalServerError) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the get order Id internal server error response
func (*GetOrderIDInternalServerError) WithPayload ¶
func (o *GetOrderIDInternalServerError) WithPayload(payload *models.StatusResponse) *GetOrderIDInternalServerError
WithPayload adds the payload to the get order Id internal server error response
func (*GetOrderIDInternalServerError) WriteResponse ¶
func (o *GetOrderIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetOrderIDNotFound ¶
type GetOrderIDNotFound struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
GetOrderIDNotFound Not found
swagger:response getOrderIdNotFound
func NewGetOrderIDNotFound ¶
func NewGetOrderIDNotFound() *GetOrderIDNotFound
NewGetOrderIDNotFound creates GetOrderIDNotFound with default headers values
func (*GetOrderIDNotFound) SetPayload ¶
func (o *GetOrderIDNotFound) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the get order Id not found response
func (*GetOrderIDNotFound) WithPayload ¶
func (o *GetOrderIDNotFound) WithPayload(payload *models.StatusResponse) *GetOrderIDNotFound
WithPayload adds the payload to the get order Id not found response
func (*GetOrderIDNotFound) WriteResponse ¶
func (o *GetOrderIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetOrderIDOK ¶
type GetOrderIDOK struct { /* In: Body */ Payload *models.OrderResponse `json:"body,omitempty"` }
GetOrderIDOK OK
swagger:response getOrderIdOK
func NewGetOrderIDOK ¶
func NewGetOrderIDOK() *GetOrderIDOK
NewGetOrderIDOK creates GetOrderIDOK with default headers values
func (*GetOrderIDOK) SetPayload ¶
func (o *GetOrderIDOK) SetPayload(payload *models.OrderResponse)
SetPayload sets the payload to the get order Id o k response
func (*GetOrderIDOK) WithPayload ¶
func (o *GetOrderIDOK) WithPayload(payload *models.OrderResponse) *GetOrderIDOK
WithPayload adds the payload to the get order Id o k response
func (*GetOrderIDOK) WriteResponse ¶
func (o *GetOrderIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetOrderIDParams ¶
type GetOrderIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The order ID. Required: true In: path */ ID string }
GetOrderIDParams contains all the bound params for the get order ID operation typically these are obtained from a http.Request
swagger:parameters GetOrderID
func NewGetOrderIDParams ¶
func NewGetOrderIDParams() GetOrderIDParams
NewGetOrderIDParams creates a new GetOrderIDParams object no default values defined in spec.
func (*GetOrderIDParams) BindRequest ¶
func (o *GetOrderIDParams) 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 NewGetOrderIDParams() beforehand.
type GetOrderIDURL ¶
type GetOrderIDURL struct { ID string // contains filtered or unexported fields }
GetOrderIDURL generates an URL for the get order ID operation
func (*GetOrderIDURL) Build ¶
func (o *GetOrderIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetOrderIDURL) BuildFull ¶
func (o *GetOrderIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetOrderIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetOrderIDURL) SetBasePath ¶
func (o *GetOrderIDURL) 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 (*GetOrderIDURL) String ¶
func (o *GetOrderIDURL) String() string
String returns the string representation of the path with query string
func (*GetOrderIDURL) StringFull ¶
func (o *GetOrderIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetOrderIDURL) WithBasePath ¶
func (o *GetOrderIDURL) WithBasePath(bp string) *GetOrderIDURL
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 PostOrder ¶
type PostOrder struct { Context *middleware.Context Handler PostOrderHandler }
PostOrder swagger:route POST /order order postOrder
create order
func NewPostOrder ¶
func NewPostOrder(ctx *middleware.Context, handler PostOrderHandler) *PostOrder
NewPostOrder creates a new http.Handler for the post order operation
type PostOrderBadRequest ¶
type PostOrderBadRequest struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
PostOrderBadRequest Bad request
swagger:response postOrderBadRequest
func NewPostOrderBadRequest ¶
func NewPostOrderBadRequest() *PostOrderBadRequest
NewPostOrderBadRequest creates PostOrderBadRequest with default headers values
func (*PostOrderBadRequest) SetPayload ¶
func (o *PostOrderBadRequest) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the post order bad request response
func (*PostOrderBadRequest) WithPayload ¶
func (o *PostOrderBadRequest) WithPayload(payload *models.StatusResponse) *PostOrderBadRequest
WithPayload adds the payload to the post order bad request response
func (*PostOrderBadRequest) WriteResponse ¶
func (o *PostOrderBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostOrderCreated ¶
type PostOrderCreated struct { /* In: Body */ Payload *models.OrderCreateResponse `json:"body,omitempty"` }
PostOrderCreated Created
swagger:response postOrderCreated
func NewPostOrderCreated ¶
func NewPostOrderCreated() *PostOrderCreated
NewPostOrderCreated creates PostOrderCreated with default headers values
func (*PostOrderCreated) SetPayload ¶
func (o *PostOrderCreated) SetPayload(payload *models.OrderCreateResponse)
SetPayload sets the payload to the post order created response
func (*PostOrderCreated) WithPayload ¶
func (o *PostOrderCreated) WithPayload(payload *models.OrderCreateResponse) *PostOrderCreated
WithPayload adds the payload to the post order created response
func (*PostOrderCreated) WriteResponse ¶
func (o *PostOrderCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostOrderHandler ¶
type PostOrderHandler interface {
Handle(PostOrderParams) middleware.Responder
}
PostOrderHandler interface for that can handle valid post order params
type PostOrderHandlerFunc ¶
type PostOrderHandlerFunc func(PostOrderParams) middleware.Responder
PostOrderHandlerFunc turns a function with the right signature into a post order handler
func (PostOrderHandlerFunc) Handle ¶
func (fn PostOrderHandlerFunc) Handle(params PostOrderParams) middleware.Responder
Handle executing the request and returning a response
type PostOrderInternalServerError ¶
type PostOrderInternalServerError struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
PostOrderInternalServerError Internal server error
swagger:response postOrderInternalServerError
func NewPostOrderInternalServerError ¶
func NewPostOrderInternalServerError() *PostOrderInternalServerError
NewPostOrderInternalServerError creates PostOrderInternalServerError with default headers values
func (*PostOrderInternalServerError) SetPayload ¶
func (o *PostOrderInternalServerError) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the post order internal server error response
func (*PostOrderInternalServerError) WithPayload ¶
func (o *PostOrderInternalServerError) WithPayload(payload *models.StatusResponse) *PostOrderInternalServerError
WithPayload adds the payload to the post order internal server error response
func (*PostOrderInternalServerError) WriteResponse ¶
func (o *PostOrderInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostOrderParams ¶
type PostOrderParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Order data Required: true In: body */ Body *models.OrderRequest }
PostOrderParams contains all the bound params for the post order operation typically these are obtained from a http.Request
swagger:parameters PostOrder
func NewPostOrderParams ¶
func NewPostOrderParams() PostOrderParams
NewPostOrderParams creates a new PostOrderParams object no default values defined in spec.
func (*PostOrderParams) BindRequest ¶
func (o *PostOrderParams) 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 NewPostOrderParams() beforehand.
type PostOrderURL ¶
type PostOrderURL struct {
// contains filtered or unexported fields
}
PostOrderURL generates an URL for the post order operation
func (*PostOrderURL) Build ¶
func (o *PostOrderURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostOrderURL) BuildFull ¶
func (o *PostOrderURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostOrderURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostOrderURL) SetBasePath ¶
func (o *PostOrderURL) 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 (*PostOrderURL) String ¶
func (o *PostOrderURL) String() string
String returns the string representation of the path with query string
func (*PostOrderURL) StringFull ¶
func (o *PostOrderURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostOrderURL) WithBasePath ¶
func (o *PostOrderURL) WithBasePath(bp string) *PostOrderURL
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