store

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2018 License: Apache-2.0 Imports: 13 Imported by: 36

Documentation

Index

Constants

View Source
const InventoryGetOKCode int = 200

InventoryGetOKCode is the HTTP code returned for type InventoryGetOK

View Source
const OrderCreateBadRequestCode int = 400

OrderCreateBadRequestCode is the HTTP code returned for type OrderCreateBadRequest

View Source
const OrderCreateOKCode int = 200

OrderCreateOKCode is the HTTP code returned for type OrderCreateOK

View Source
const OrderDeleteBadRequestCode int = 400

OrderDeleteBadRequestCode is the HTTP code returned for type OrderDeleteBadRequest

View Source
const OrderDeleteNoContentCode int = 204

OrderDeleteNoContentCode is the HTTP code returned for type OrderDeleteNoContent

View Source
const OrderDeleteNotFoundCode int = 404

OrderDeleteNotFoundCode is the HTTP code returned for type OrderDeleteNotFound

View Source
const OrderGetBadRequestCode int = 400

OrderGetBadRequestCode is the HTTP code returned for type OrderGetBadRequest

View Source
const OrderGetNotFoundCode int = 404

OrderGetNotFoundCode is the HTTP code returned for type OrderGetNotFound

View Source
const OrderGetOKCode int = 200

OrderGetOKCode is the HTTP code returned for type OrderGetOK

Variables

This section is empty.

Functions

This section is empty.

Types

type InventoryGet

type InventoryGet struct {
	Context *middleware.Context
	Handler InventoryGetHandler
}

InventoryGet swagger:route GET /store/inventory store inventoryGet

Returns pet inventories by status

func NewInventoryGet

func NewInventoryGet(ctx *middleware.Context, handler InventoryGetHandler) *InventoryGet

NewInventoryGet creates a new http.Handler for the inventory get operation

func (*InventoryGet) ServeHTTP

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

type InventoryGetHandler

type InventoryGetHandler interface {
	Handle(InventoryGetParams, interface{}) middleware.Responder
}

InventoryGetHandler interface for that can handle valid inventory get params

type InventoryGetHandlerFunc

type InventoryGetHandlerFunc func(InventoryGetParams, interface{}) middleware.Responder

InventoryGetHandlerFunc turns a function with the right signature into a inventory get handler

func (InventoryGetHandlerFunc) Handle

func (fn InventoryGetHandlerFunc) Handle(params InventoryGetParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type InventoryGetOK

type InventoryGetOK struct {

	/*
	  In: Body
	*/
	Payload map[string]int32 `json:"body,omitempty"`
}

InventoryGetOK successful operation

swagger:response inventoryGetOK

func NewInventoryGetOK

func NewInventoryGetOK() *InventoryGetOK

NewInventoryGetOK creates InventoryGetOK with default headers values

func (*InventoryGetOK) SetPayload

func (o *InventoryGetOK) SetPayload(payload map[string]int32)

SetPayload sets the payload to the inventory get o k response

func (*InventoryGetOK) WithPayload

func (o *InventoryGetOK) WithPayload(payload map[string]int32) *InventoryGetOK

WithPayload adds the payload to the inventory get o k response

func (*InventoryGetOK) WriteResponse

func (o *InventoryGetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type InventoryGetParams

type InventoryGetParams struct {

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

InventoryGetParams contains all the bound params for the inventory get operation typically these are obtained from a http.Request

swagger:parameters InventoryGet

func NewInventoryGetParams

func NewInventoryGetParams() InventoryGetParams

NewInventoryGetParams creates a new InventoryGetParams object no default values defined in spec.

func (*InventoryGetParams) BindRequest

func (o *InventoryGetParams) 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 NewInventoryGetParams() beforehand.

type InventoryGetURL

type InventoryGetURL struct {
	// contains filtered or unexported fields
}

InventoryGetURL generates an URL for the inventory get operation

func (*InventoryGetURL) Build

func (o *InventoryGetURL) Build() (*url.URL, error)

Build a url path and query string

func (*InventoryGetURL) BuildFull

func (o *InventoryGetURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*InventoryGetURL) Must

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

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

func (*InventoryGetURL) SetBasePath

func (o *InventoryGetURL) 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 (*InventoryGetURL) String

func (o *InventoryGetURL) String() string

String returns the string representation of the path with query string

func (*InventoryGetURL) StringFull

func (o *InventoryGetURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*InventoryGetURL) WithBasePath

func (o *InventoryGetURL) WithBasePath(bp string) *InventoryGetURL

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 OrderCreate

type OrderCreate struct {
	Context *middleware.Context
	Handler OrderCreateHandler
}

OrderCreate swagger:route POST /store/order store orderCreate

Place an order for a pet

func NewOrderCreate

func NewOrderCreate(ctx *middleware.Context, handler OrderCreateHandler) *OrderCreate

NewOrderCreate creates a new http.Handler for the order create operation

func (*OrderCreate) ServeHTTP

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

type OrderCreateBadRequest

type OrderCreateBadRequest struct {
}

OrderCreateBadRequest Invalid Order

swagger:response orderCreateBadRequest

func NewOrderCreateBadRequest

func NewOrderCreateBadRequest() *OrderCreateBadRequest

NewOrderCreateBadRequest creates OrderCreateBadRequest with default headers values

func (*OrderCreateBadRequest) WriteResponse

func (o *OrderCreateBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OrderCreateHandler

type OrderCreateHandler interface {
	Handle(OrderCreateParams, interface{}) middleware.Responder
}

OrderCreateHandler interface for that can handle valid order create params

type OrderCreateHandlerFunc

type OrderCreateHandlerFunc func(OrderCreateParams, interface{}) middleware.Responder

OrderCreateHandlerFunc turns a function with the right signature into a order create handler

func (OrderCreateHandlerFunc) Handle

func (fn OrderCreateHandlerFunc) Handle(params OrderCreateParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type OrderCreateOK

type OrderCreateOK struct {

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

OrderCreateOK successful operation

swagger:response orderCreateOK

func NewOrderCreateOK

func NewOrderCreateOK() *OrderCreateOK

NewOrderCreateOK creates OrderCreateOK with default headers values

func (*OrderCreateOK) SetPayload

func (o *OrderCreateOK) SetPayload(payload *models.Order)

SetPayload sets the payload to the order create o k response

func (*OrderCreateOK) WithPayload

func (o *OrderCreateOK) WithPayload(payload *models.Order) *OrderCreateOK

WithPayload adds the payload to the order create o k response

func (*OrderCreateOK) WriteResponse

func (o *OrderCreateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OrderCreateParams

type OrderCreateParams struct {

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

	/*order placed for purchasing the pet
	  Required: true
	  In: body
	*/
	Body *models.Order
}

OrderCreateParams contains all the bound params for the order create operation typically these are obtained from a http.Request

swagger:parameters OrderCreate

func NewOrderCreateParams

func NewOrderCreateParams() OrderCreateParams

NewOrderCreateParams creates a new OrderCreateParams object no default values defined in spec.

func (*OrderCreateParams) BindRequest

func (o *OrderCreateParams) 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 NewOrderCreateParams() beforehand.

type OrderCreateURL

type OrderCreateURL struct {
	// contains filtered or unexported fields
}

OrderCreateURL generates an URL for the order create operation

func (*OrderCreateURL) Build

func (o *OrderCreateURL) Build() (*url.URL, error)

Build a url path and query string

func (*OrderCreateURL) BuildFull

func (o *OrderCreateURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*OrderCreateURL) Must

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

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

func (*OrderCreateURL) SetBasePath

func (o *OrderCreateURL) 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 (*OrderCreateURL) String

func (o *OrderCreateURL) String() string

String returns the string representation of the path with query string

func (*OrderCreateURL) StringFull

func (o *OrderCreateURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*OrderCreateURL) WithBasePath

func (o *OrderCreateURL) WithBasePath(bp string) *OrderCreateURL

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 OrderDelete

type OrderDelete struct {
	Context *middleware.Context
	Handler OrderDeleteHandler
}

OrderDelete swagger:route DELETE /store/order/{orderId} store orderDelete

Delete purchase order by ID

For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors

func NewOrderDelete

func NewOrderDelete(ctx *middleware.Context, handler OrderDeleteHandler) *OrderDelete

NewOrderDelete creates a new http.Handler for the order delete operation

func (*OrderDelete) ServeHTTP

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

type OrderDeleteBadRequest

type OrderDeleteBadRequest struct {
}

OrderDeleteBadRequest Invalid ID supplied

swagger:response orderDeleteBadRequest

func NewOrderDeleteBadRequest

func NewOrderDeleteBadRequest() *OrderDeleteBadRequest

NewOrderDeleteBadRequest creates OrderDeleteBadRequest with default headers values

func (*OrderDeleteBadRequest) WriteResponse

func (o *OrderDeleteBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OrderDeleteHandler

type OrderDeleteHandler interface {
	Handle(OrderDeleteParams, interface{}) middleware.Responder
}

OrderDeleteHandler interface for that can handle valid order delete params

type OrderDeleteHandlerFunc

type OrderDeleteHandlerFunc func(OrderDeleteParams, interface{}) middleware.Responder

OrderDeleteHandlerFunc turns a function with the right signature into a order delete handler

func (OrderDeleteHandlerFunc) Handle

func (fn OrderDeleteHandlerFunc) Handle(params OrderDeleteParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type OrderDeleteNoContent

type OrderDeleteNoContent struct {
}

OrderDeleteNoContent Deleted successfully

swagger:response orderDeleteNoContent

func NewOrderDeleteNoContent

func NewOrderDeleteNoContent() *OrderDeleteNoContent

NewOrderDeleteNoContent creates OrderDeleteNoContent with default headers values

func (*OrderDeleteNoContent) WriteResponse

func (o *OrderDeleteNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OrderDeleteNotFound

type OrderDeleteNotFound struct {
}

OrderDeleteNotFound Order not found

swagger:response orderDeleteNotFound

func NewOrderDeleteNotFound

func NewOrderDeleteNotFound() *OrderDeleteNotFound

NewOrderDeleteNotFound creates OrderDeleteNotFound with default headers values

func (*OrderDeleteNotFound) WriteResponse

func (o *OrderDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OrderDeleteParams

type OrderDeleteParams struct {

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

	/*ID of the order that needs to be deleted
	  Required: true
	  Minimum: 1
	  In: path
	*/
	OrderID int64
}

OrderDeleteParams contains all the bound params for the order delete operation typically these are obtained from a http.Request

swagger:parameters OrderDelete

func NewOrderDeleteParams

func NewOrderDeleteParams() OrderDeleteParams

NewOrderDeleteParams creates a new OrderDeleteParams object no default values defined in spec.

func (*OrderDeleteParams) BindRequest

func (o *OrderDeleteParams) 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 NewOrderDeleteParams() beforehand.

type OrderDeleteURL

type OrderDeleteURL struct {
	OrderID int64
	// contains filtered or unexported fields
}

OrderDeleteURL generates an URL for the order delete operation

func (*OrderDeleteURL) Build

func (o *OrderDeleteURL) Build() (*url.URL, error)

Build a url path and query string

func (*OrderDeleteURL) BuildFull

func (o *OrderDeleteURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*OrderDeleteURL) Must

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

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

func (*OrderDeleteURL) SetBasePath

func (o *OrderDeleteURL) 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 (*OrderDeleteURL) String

func (o *OrderDeleteURL) String() string

String returns the string representation of the path with query string

func (*OrderDeleteURL) StringFull

func (o *OrderDeleteURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*OrderDeleteURL) WithBasePath

func (o *OrderDeleteURL) WithBasePath(bp string) *OrderDeleteURL

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 OrderGet

type OrderGet struct {
	Context *middleware.Context
	Handler OrderGetHandler
}

OrderGet swagger:route GET /store/order/{orderId} store orderGet

Find purchase order by ID

For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions

func NewOrderGet

func NewOrderGet(ctx *middleware.Context, handler OrderGetHandler) *OrderGet

NewOrderGet creates a new http.Handler for the order get operation

func (*OrderGet) ServeHTTP

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

type OrderGetBadRequest

type OrderGetBadRequest struct {
}

OrderGetBadRequest Invalid ID supplied

swagger:response orderGetBadRequest

func NewOrderGetBadRequest

func NewOrderGetBadRequest() *OrderGetBadRequest

NewOrderGetBadRequest creates OrderGetBadRequest with default headers values

func (*OrderGetBadRequest) WriteResponse

func (o *OrderGetBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OrderGetHandler

type OrderGetHandler interface {
	Handle(OrderGetParams, interface{}) middleware.Responder
}

OrderGetHandler interface for that can handle valid order get params

type OrderGetHandlerFunc

type OrderGetHandlerFunc func(OrderGetParams, interface{}) middleware.Responder

OrderGetHandlerFunc turns a function with the right signature into a order get handler

func (OrderGetHandlerFunc) Handle

func (fn OrderGetHandlerFunc) Handle(params OrderGetParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type OrderGetNotFound

type OrderGetNotFound struct {
}

OrderGetNotFound Order not found

swagger:response orderGetNotFound

func NewOrderGetNotFound

func NewOrderGetNotFound() *OrderGetNotFound

NewOrderGetNotFound creates OrderGetNotFound with default headers values

func (*OrderGetNotFound) WriteResponse

func (o *OrderGetNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OrderGetOK

type OrderGetOK struct {

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

OrderGetOK successful operation

swagger:response orderGetOK

func NewOrderGetOK

func NewOrderGetOK() *OrderGetOK

NewOrderGetOK creates OrderGetOK with default headers values

func (*OrderGetOK) SetPayload

func (o *OrderGetOK) SetPayload(payload *models.Order)

SetPayload sets the payload to the order get o k response

func (*OrderGetOK) WithPayload

func (o *OrderGetOK) WithPayload(payload *models.Order) *OrderGetOK

WithPayload adds the payload to the order get o k response

func (*OrderGetOK) WriteResponse

func (o *OrderGetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OrderGetParams

type OrderGetParams struct {

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

	/*ID of pet that needs to be fetched
	  Required: true
	  Maximum: 10
	  Minimum: 1
	  In: path
	*/
	OrderID int64
}

OrderGetParams contains all the bound params for the order get operation typically these are obtained from a http.Request

swagger:parameters OrderGet

func NewOrderGetParams

func NewOrderGetParams() OrderGetParams

NewOrderGetParams creates a new OrderGetParams object no default values defined in spec.

func (*OrderGetParams) BindRequest

func (o *OrderGetParams) 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 NewOrderGetParams() beforehand.

type OrderGetURL

type OrderGetURL struct {
	OrderID int64
	// contains filtered or unexported fields
}

OrderGetURL generates an URL for the order get operation

func (*OrderGetURL) Build

func (o *OrderGetURL) Build() (*url.URL, error)

Build a url path and query string

func (*OrderGetURL) BuildFull

func (o *OrderGetURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*OrderGetURL) Must

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

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

func (*OrderGetURL) SetBasePath

func (o *OrderGetURL) 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 (*OrderGetURL) String

func (o *OrderGetURL) String() string

String returns the string representation of the path with query string

func (*OrderGetURL) StringFull

func (o *OrderGetURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*OrderGetURL) WithBasePath

func (o *OrderGetURL) WithBasePath(bp string) *OrderGetURL

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