store

package
v0.0.0-...-c3eecff Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteOrder

type DeleteOrder struct {
	Context *middleware.Context
	Params  DeleteOrderParams
	Handler DeleteOrderHandler
}

Delete purchase order by ID

For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

func NewDeleteOrder

func NewDeleteOrder(ctx *middleware.Context, handler DeleteOrderHandler) *DeleteOrder

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

func (*DeleteOrder) ServeHTTP

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

type DeleteOrderHandler

type DeleteOrderHandler interface {
	Handle(DeleteOrderParams) error
}

DeleteOrderHandler interface for that can handle valid delete order params

type DeleteOrderHandlerFunc

type DeleteOrderHandlerFunc func(DeleteOrderParams) error

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

func (DeleteOrderHandlerFunc) Handle

type DeleteOrderParams

type DeleteOrderParams struct {
	// ID of the order that needs to be deleted
	OrderID string
}

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

func (*DeleteOrderParams) BindRequest

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

type GetOrderByID

type GetOrderByID struct {
	Context *middleware.Context
	Params  GetOrderByIDParams
	Handler GetOrderByIDHandler
}

Find purchase order by ID

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

func NewGetOrderByID

func NewGetOrderByID(ctx *middleware.Context, handler GetOrderByIDHandler) *GetOrderByID

NewGetOrderByID creates a new http.Handler for the get order by id operation

func (*GetOrderByID) ServeHTTP

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

type GetOrderByIDHandler

type GetOrderByIDHandler interface {
	Handle(GetOrderByIDParams) (*models.Order, error)
}

GetOrderByIDHandler interface for that can handle valid get order by id params

type GetOrderByIDHandlerFunc

type GetOrderByIDHandlerFunc func(GetOrderByIDParams) (*models.Order, error)

GetOrderByIDHandlerFunc turns a function with the right signature into a get order by id handler

func (GetOrderByIDHandlerFunc) Handle

type GetOrderByIDParams

type GetOrderByIDParams struct {
	// ID of pet that needs to be fetched
	OrderID string
}

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

func (*GetOrderByIDParams) BindRequest

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

type PlaceOrder

type PlaceOrder struct {
	Context *middleware.Context
	Params  PlaceOrderParams
	Handler PlaceOrderHandler
}

Place an order for a pet

func NewPlaceOrder

func NewPlaceOrder(ctx *middleware.Context, handler PlaceOrderHandler) *PlaceOrder

NewPlaceOrder creates a new http.Handler for the place order operation

func (*PlaceOrder) ServeHTTP

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

type PlaceOrderHandler

type PlaceOrderHandler interface {
	Handle(PlaceOrderParams) (*models.Order, error)
}

PlaceOrderHandler interface for that can handle valid place order params

type PlaceOrderHandlerFunc

type PlaceOrderHandlerFunc func(PlaceOrderParams) (*models.Order, error)

PlaceOrderHandlerFunc turns a function with the right signature into a place order handler

func (PlaceOrderHandlerFunc) Handle

type PlaceOrderParams

type PlaceOrderParams struct {
	// order placed for purchasing the pet
	Body *models.Order
}

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

func (*PlaceOrderParams) BindRequest

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

Jump to

Keyboard shortcuts

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