Versions in this module Expand all Collapse all v0 v0.17.0 Oct 7, 2018 Changes in this version + const AddOrderForbiddenCode + const AddOrderOKCode + const AddOrderUnauthorizedCode + const GetAccountOKCode + const GetAccountUnauthorizedCode + const GetItemsOKCode + const GetOrderForbiddenCode + const GetOrderOKCode + const GetOrderUnauthorizedCode + const GetOrdersForItemForbiddenCode + const GetOrdersForItemOKCode + const GetOrdersForItemUnauthorizedCode + type AddOrder struct + Context *middleware.Context + Handler AddOrderHandler + func NewAddOrder(ctx *middleware.Context, handler AddOrderHandler) *AddOrder + func (o *AddOrder) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type AddOrderDefault struct + Payload *models.Error + func NewAddOrderDefault(code int) *AddOrderDefault + func (o *AddOrderDefault) SetPayload(payload *models.Error) + func (o *AddOrderDefault) SetStatusCode(code int) + func (o *AddOrderDefault) WithPayload(payload *models.Error) *AddOrderDefault + func (o *AddOrderDefault) WithStatusCode(code int) *AddOrderDefault + func (o *AddOrderDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type AddOrderForbidden struct + func NewAddOrderForbidden() *AddOrderForbidden + func (o *AddOrderForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type AddOrderHandler interface + Handle func(AddOrderParams, *models.Principal) middleware.Responder + type AddOrderHandlerFunc func(AddOrderParams, *models.Principal) middleware.Responder + func (fn AddOrderHandlerFunc) Handle(params AddOrderParams, principal *models.Principal) middleware.Responder + type AddOrderOK struct + func NewAddOrderOK() *AddOrderOK + func (o *AddOrderOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type AddOrderParams struct + HTTPRequest *http.Request + Order *models.Order + func NewAddOrderParams() AddOrderParams + func (o *AddOrderParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error + type AddOrderURL struct + func (o *AddOrderURL) Build() (*url.URL, error) + func (o *AddOrderURL) BuildFull(scheme, host string) (*url.URL, error) + func (o *AddOrderURL) Must(u *url.URL, err error) *url.URL + func (o *AddOrderURL) SetBasePath(bp string) + func (o *AddOrderURL) String() string + func (o *AddOrderURL) StringFull(scheme, host string) string + func (o *AddOrderURL) WithBasePath(bp string) *AddOrderURL + type AddOrderUnauthorized struct + func NewAddOrderUnauthorized() *AddOrderUnauthorized + func (o *AddOrderUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetAccount struct + Context *middleware.Context + Handler GetAccountHandler + func NewGetAccount(ctx *middleware.Context, handler GetAccountHandler) *GetAccount + func (o *GetAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type GetAccountDefault struct + Payload *models.Error + func NewGetAccountDefault(code int) *GetAccountDefault + func (o *GetAccountDefault) SetPayload(payload *models.Error) + func (o *GetAccountDefault) SetStatusCode(code int) + func (o *GetAccountDefault) WithPayload(payload *models.Error) *GetAccountDefault + func (o *GetAccountDefault) WithStatusCode(code int) *GetAccountDefault + func (o *GetAccountDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetAccountHandler interface + Handle func(GetAccountParams, *models.Principal) middleware.Responder + type GetAccountHandlerFunc func(GetAccountParams, *models.Principal) middleware.Responder + func (fn GetAccountHandlerFunc) Handle(params GetAccountParams, principal *models.Principal) middleware.Responder + type GetAccountOK struct + Payload interface{} + func NewGetAccountOK() *GetAccountOK + func (o *GetAccountOK) SetPayload(payload interface{}) + func (o *GetAccountOK) WithPayload(payload interface{}) *GetAccountOK + func (o *GetAccountOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetAccountParams struct + HTTPRequest *http.Request + func NewGetAccountParams() GetAccountParams + func (o *GetAccountParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error + type GetAccountURL struct + func (o *GetAccountURL) Build() (*url.URL, error) + func (o *GetAccountURL) BuildFull(scheme, host string) (*url.URL, error) + func (o *GetAccountURL) Must(u *url.URL, err error) *url.URL + func (o *GetAccountURL) SetBasePath(bp string) + func (o *GetAccountURL) String() string + func (o *GetAccountURL) StringFull(scheme, host string) string + func (o *GetAccountURL) WithBasePath(bp string) *GetAccountURL + type GetAccountUnauthorized struct + func NewGetAccountUnauthorized() *GetAccountUnauthorized + func (o *GetAccountUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetItems struct + Context *middleware.Context + Handler GetItemsHandler + func NewGetItems(ctx *middleware.Context, handler GetItemsHandler) *GetItems + func (o *GetItems) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type GetItemsDefault struct + Payload *models.Error + func NewGetItemsDefault(code int) *GetItemsDefault + func (o *GetItemsDefault) SetPayload(payload *models.Error) + func (o *GetItemsDefault) SetStatusCode(code int) + func (o *GetItemsDefault) WithPayload(payload *models.Error) *GetItemsDefault + func (o *GetItemsDefault) WithStatusCode(code int) *GetItemsDefault + func (o *GetItemsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetItemsHandler interface + Handle func(GetItemsParams) middleware.Responder + type GetItemsHandlerFunc func(GetItemsParams) middleware.Responder + func (fn GetItemsHandlerFunc) Handle(params GetItemsParams) middleware.Responder + type GetItemsOK struct + Payload []models.Item + func NewGetItemsOK() *GetItemsOK + func (o *GetItemsOK) SetPayload(payload []models.Item) + func (o *GetItemsOK) WithPayload(payload []models.Item) *GetItemsOK + func (o *GetItemsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetItemsParams struct + HTTPRequest *http.Request + func NewGetItemsParams() GetItemsParams + func (o *GetItemsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error + type GetItemsURL struct + func (o *GetItemsURL) Build() (*url.URL, error) + func (o *GetItemsURL) BuildFull(scheme, host string) (*url.URL, error) + func (o *GetItemsURL) Must(u *url.URL, err error) *url.URL + func (o *GetItemsURL) SetBasePath(bp string) + func (o *GetItemsURL) String() string + func (o *GetItemsURL) StringFull(scheme, host string) string + func (o *GetItemsURL) WithBasePath(bp string) *GetItemsURL + type GetOrder struct + Context *middleware.Context + Handler GetOrderHandler + func NewGetOrder(ctx *middleware.Context, handler GetOrderHandler) *GetOrder + func (o *GetOrder) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type GetOrderDefault struct + Payload *models.Error + func NewGetOrderDefault(code int) *GetOrderDefault + func (o *GetOrderDefault) SetPayload(payload *models.Error) + func (o *GetOrderDefault) SetStatusCode(code int) + func (o *GetOrderDefault) WithPayload(payload *models.Error) *GetOrderDefault + func (o *GetOrderDefault) WithStatusCode(code int) *GetOrderDefault + func (o *GetOrderDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetOrderForbidden struct + func NewGetOrderForbidden() *GetOrderForbidden + func (o *GetOrderForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetOrderHandler interface + Handle func(GetOrderParams, *models.Principal) middleware.Responder + type GetOrderHandlerFunc func(GetOrderParams, *models.Principal) middleware.Responder + func (fn GetOrderHandlerFunc) Handle(params GetOrderParams, principal *models.Principal) middleware.Responder + type GetOrderOK struct + Payload *models.Order + func NewGetOrderOK() *GetOrderOK + func (o *GetOrderOK) SetPayload(payload *models.Order) + func (o *GetOrderOK) WithPayload(payload *models.Order) *GetOrderOK + func (o *GetOrderOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetOrderParams struct + HTTPRequest *http.Request + OrderID string + func NewGetOrderParams() GetOrderParams + func (o *GetOrderParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error + type GetOrderURL struct + OrderID string + func (o *GetOrderURL) Build() (*url.URL, error) + func (o *GetOrderURL) BuildFull(scheme, host string) (*url.URL, error) + func (o *GetOrderURL) Must(u *url.URL, err error) *url.URL + func (o *GetOrderURL) SetBasePath(bp string) + func (o *GetOrderURL) String() string + func (o *GetOrderURL) StringFull(scheme, host string) string + func (o *GetOrderURL) WithBasePath(bp string) *GetOrderURL + type GetOrderUnauthorized struct + func NewGetOrderUnauthorized() *GetOrderUnauthorized + func (o *GetOrderUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetOrdersForItem struct + Context *middleware.Context + Handler GetOrdersForItemHandler + func NewGetOrdersForItem(ctx *middleware.Context, handler GetOrdersForItemHandler) *GetOrdersForItem + func (o *GetOrdersForItem) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type GetOrdersForItemDefault struct + Payload *models.Error + func NewGetOrdersForItemDefault(code int) *GetOrdersForItemDefault + func (o *GetOrdersForItemDefault) SetPayload(payload *models.Error) + func (o *GetOrdersForItemDefault) SetStatusCode(code int) + func (o *GetOrdersForItemDefault) WithPayload(payload *models.Error) *GetOrdersForItemDefault + func (o *GetOrdersForItemDefault) WithStatusCode(code int) *GetOrdersForItemDefault + func (o *GetOrdersForItemDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetOrdersForItemForbidden struct + func NewGetOrdersForItemForbidden() *GetOrdersForItemForbidden + func (o *GetOrdersForItemForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetOrdersForItemHandler interface + Handle func(GetOrdersForItemParams, *models.Principal) middleware.Responder + type GetOrdersForItemHandlerFunc func(GetOrdersForItemParams, *models.Principal) middleware.Responder + func (fn GetOrdersForItemHandlerFunc) Handle(params GetOrdersForItemParams, principal *models.Principal) middleware.Responder + type GetOrdersForItemOK struct + Payload []*models.Order + func NewGetOrdersForItemOK() *GetOrdersForItemOK + func (o *GetOrdersForItemOK) SetPayload(payload []*models.Order) + func (o *GetOrdersForItemOK) WithPayload(payload []*models.Order) *GetOrdersForItemOK + func (o *GetOrdersForItemOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type GetOrdersForItemParams struct + HTTPRequest *http.Request + ItemID string + func NewGetOrdersForItemParams() GetOrdersForItemParams + func (o *GetOrdersForItemParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error + type GetOrdersForItemURL struct + ItemID string + func (o *GetOrdersForItemURL) Build() (*url.URL, error) + func (o *GetOrdersForItemURL) BuildFull(scheme, host string) (*url.URL, error) + func (o *GetOrdersForItemURL) Must(u *url.URL, err error) *url.URL + func (o *GetOrdersForItemURL) SetBasePath(bp string) + func (o *GetOrdersForItemURL) String() string + func (o *GetOrdersForItemURL) StringFull(scheme, host string) string + func (o *GetOrdersForItemURL) WithBasePath(bp string) *GetOrdersForItemURL + type GetOrdersForItemUnauthorized struct + func NewGetOrdersForItemUnauthorized() *GetOrdersForItemUnauthorized + func (o *GetOrdersForItemUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type MultiAuthExampleAPI struct + APIAuthorizer runtime.Authorizer + APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator + AddOrderHandler AddOrderHandler + BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator + BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator + CommandLineOptionsGroups []swag.CommandLineOptionsGroup + GetAccountHandler GetAccountHandler + GetItemsHandler GetItemsHandler + GetOrderHandler GetOrderHandler + GetOrdersForItemHandler GetOrdersForItemHandler + HasRoleAuth func(string, []string) (*models.Principal, error) + IsRegisteredAuth func(string, string) (*models.Principal, error) + IsResellerAuth func(string) (*models.Principal, error) + IsResellerQueryAuth func(string) (*models.Principal, error) + JSONConsumer runtime.Consumer + JSONProducer runtime.Producer + Logger func(string, ...interface{}) + Middleware func(middleware.Builder) http.Handler + ServeError func(http.ResponseWriter, *http.Request, error) + ServerShutdown func() + func NewMultiAuthExampleAPI(spec *loads.Document) *MultiAuthExampleAPI + func (o *MultiAuthExampleAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator + func (o *MultiAuthExampleAPI) Authorizer() runtime.Authorizer + func (o *MultiAuthExampleAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer + func (o *MultiAuthExampleAPI) Context() *middleware.Context + func (o *MultiAuthExampleAPI) DefaultConsumes() string + func (o *MultiAuthExampleAPI) DefaultProduces() string + func (o *MultiAuthExampleAPI) Formats() strfmt.Registry + func (o *MultiAuthExampleAPI) HandlerFor(method, path string) (http.Handler, bool) + func (o *MultiAuthExampleAPI) Init() + func (o *MultiAuthExampleAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer + func (o *MultiAuthExampleAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer) + func (o *MultiAuthExampleAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator) + func (o *MultiAuthExampleAPI) RegisterProducer(mediaType string, producer runtime.Producer) + func (o *MultiAuthExampleAPI) Serve(builder middleware.Builder) http.Handler + func (o *MultiAuthExampleAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error) + func (o *MultiAuthExampleAPI) SetDefaultConsumes(mediaType string) + func (o *MultiAuthExampleAPI) SetDefaultProduces(mediaType string) + func (o *MultiAuthExampleAPI) SetSpec(spec *loads.Document) + func (o *MultiAuthExampleAPI) Validate() error