spoons

package
v0.0.0-...-3c1a35f Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AddSpoonCreatedCode int = 201

AddSpoonCreatedCode is the HTTP code returned for type AddSpoonCreated

View Source
const AddSpoonNotFoundCode int = 404

AddSpoonNotFoundCode is the HTTP code returned for type AddSpoonNotFound

View Source
const AddSpoonUnauthorizedCode int = 401

AddSpoonUnauthorizedCode is the HTTP code returned for type AddSpoonUnauthorized

View Source
const DestroySpoonNoContentCode int = 204

DestroySpoonNoContentCode is the HTTP code returned for type DestroySpoonNoContent

View Source
const DestroySpoonNotFoundCode int = 404

DestroySpoonNotFoundCode is the HTTP code returned for type DestroySpoonNotFound

View Source
const DestroySpoonUnauthorizedCode int = 401

DestroySpoonUnauthorizedCode is the HTTP code returned for type DestroySpoonUnauthorized

View Source
const FindSpoonsNotFoundCode int = 404

FindSpoonsNotFoundCode is the HTTP code returned for type FindSpoonsNotFound

View Source
const FindSpoonsOKCode int = 200

FindSpoonsOKCode is the HTTP code returned for type FindSpoonsOK

View Source
const FindSpoonsUnauthorizedCode int = 401

FindSpoonsUnauthorizedCode is the HTTP code returned for type FindSpoonsUnauthorized

View Source
const GetSpoonNotFoundCode int = 404

GetSpoonNotFoundCode is the HTTP code returned for type GetSpoonNotFound

View Source
const GetSpoonOKCode int = 200

GetSpoonOKCode is the HTTP code returned for type GetSpoonOK

View Source
const GetSpoonUnauthorizedCode int = 401

GetSpoonUnauthorizedCode is the HTTP code returned for type GetSpoonUnauthorized

View Source
const UpdateSpoonNotFoundCode int = 404

UpdateSpoonNotFoundCode is the HTTP code returned for type UpdateSpoonNotFound

View Source
const UpdateSpoonOKCode int = 200

UpdateSpoonOKCode is the HTTP code returned for type UpdateSpoonOK

View Source
const UpdateSpoonUnauthorizedCode int = 401

UpdateSpoonUnauthorizedCode is the HTTP code returned for type UpdateSpoonUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type AddSpoon

type AddSpoon struct {
	Context *middleware.Context
	Handler AddSpoonHandler
}

AddSpoon swagger:route POST /v1/spoons spoons addSpoon

AddSpoon add spoon API

func NewAddSpoon

func NewAddSpoon(ctx *middleware.Context, handler AddSpoonHandler) *AddSpoon

NewAddSpoon creates a new http.Handler for the add spoon operation

func (*AddSpoon) ServeHTTP

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

type AddSpoonCreated

type AddSpoonCreated struct {

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

AddSpoonCreated Created

swagger:response addSpoonCreated

func NewAddSpoonCreated

func NewAddSpoonCreated() *AddSpoonCreated

NewAddSpoonCreated creates AddSpoonCreated with default headers values

func (*AddSpoonCreated) SetPayload

func (o *AddSpoonCreated) SetPayload(payload *models.Item)

SetPayload sets the payload to the add spoon created response

func (*AddSpoonCreated) WithPayload

func (o *AddSpoonCreated) WithPayload(payload *models.Item) *AddSpoonCreated

WithPayload adds the payload to the add spoon created response

func (*AddSpoonCreated) WriteResponse

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

WriteResponse to the client

type AddSpoonDefault

type AddSpoonDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

AddSpoonDefault error

swagger:response addSpoonDefault

func NewAddSpoonDefault

func NewAddSpoonDefault(code int) *AddSpoonDefault

NewAddSpoonDefault creates AddSpoonDefault with default headers values

func (*AddSpoonDefault) SetPayload

func (o *AddSpoonDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the add spoon default response

func (*AddSpoonDefault) SetStatusCode

func (o *AddSpoonDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add spoon default response

func (*AddSpoonDefault) WithPayload

func (o *AddSpoonDefault) WithPayload(payload *models.Error) *AddSpoonDefault

WithPayload adds the payload to the add spoon default response

func (*AddSpoonDefault) WithStatusCode

func (o *AddSpoonDefault) WithStatusCode(code int) *AddSpoonDefault

WithStatusCode adds the status to the add spoon default response

func (*AddSpoonDefault) WriteResponse

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

WriteResponse to the client

type AddSpoonHandler

type AddSpoonHandler interface {
	Handle(AddSpoonParams, *models.Principal) middleware.Responder
}

AddSpoonHandler interface for that can handle valid add spoon params

type AddSpoonHandlerFunc

type AddSpoonHandlerFunc func(AddSpoonParams, *models.Principal) middleware.Responder

AddSpoonHandlerFunc turns a function with the right signature into a add spoon handler

func (AddSpoonHandlerFunc) Handle

Handle executing the request and returning a response

type AddSpoonNotFound

type AddSpoonNotFound struct {

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

AddSpoonNotFound resource not found

swagger:response addSpoonNotFound

func NewAddSpoonNotFound

func NewAddSpoonNotFound() *AddSpoonNotFound

NewAddSpoonNotFound creates AddSpoonNotFound with default headers values

func (*AddSpoonNotFound) SetPayload

func (o *AddSpoonNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the add spoon not found response

func (*AddSpoonNotFound) WithPayload

func (o *AddSpoonNotFound) WithPayload(payload *models.Error) *AddSpoonNotFound

WithPayload adds the payload to the add spoon not found response

func (*AddSpoonNotFound) WriteResponse

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

WriteResponse to the client

type AddSpoonParams

type AddSpoonParams struct {

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

	/*
	  In: body
	*/
	Body *models.Item
}

AddSpoonParams contains all the bound params for the add spoon operation typically these are obtained from a http.Request

swagger:parameters add_spoon

func NewAddSpoonParams

func NewAddSpoonParams() AddSpoonParams

NewAddSpoonParams creates a new AddSpoonParams object no default values defined in spec.

func (*AddSpoonParams) BindRequest

func (o *AddSpoonParams) 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 NewAddSpoonParams() beforehand.

type AddSpoonURL

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

AddSpoonURL generates an URL for the add spoon operation

func (*AddSpoonURL) Build

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

Build a url path and query string

func (*AddSpoonURL) BuildFull

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

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

func (*AddSpoonURL) Must

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

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

func (*AddSpoonURL) SetBasePath

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

func (o *AddSpoonURL) String() string

String returns the string representation of the path with query string

func (*AddSpoonURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddSpoonURL) WithBasePath

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

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 AddSpoonUnauthorized

type AddSpoonUnauthorized struct {

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

AddSpoonUnauthorized unauthorized

swagger:response addSpoonUnauthorized

func NewAddSpoonUnauthorized

func NewAddSpoonUnauthorized() *AddSpoonUnauthorized

NewAddSpoonUnauthorized creates AddSpoonUnauthorized with default headers values

func (*AddSpoonUnauthorized) SetPayload

func (o *AddSpoonUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the add spoon unauthorized response

func (*AddSpoonUnauthorized) WithPayload

func (o *AddSpoonUnauthorized) WithPayload(payload *models.Error) *AddSpoonUnauthorized

WithPayload adds the payload to the add spoon unauthorized response

func (*AddSpoonUnauthorized) WriteResponse

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

WriteResponse to the client

type DestroySpoon

type DestroySpoon struct {
	Context *middleware.Context
	Handler DestroySpoonHandler
}

DestroySpoon swagger:route DELETE /v1/spoons/{id} spoons destroySpoon

DestroySpoon destroy spoon API

func NewDestroySpoon

func NewDestroySpoon(ctx *middleware.Context, handler DestroySpoonHandler) *DestroySpoon

NewDestroySpoon creates a new http.Handler for the destroy spoon operation

func (*DestroySpoon) ServeHTTP

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

type DestroySpoonDefault

type DestroySpoonDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DestroySpoonDefault error

swagger:response destroySpoonDefault

func NewDestroySpoonDefault

func NewDestroySpoonDefault(code int) *DestroySpoonDefault

NewDestroySpoonDefault creates DestroySpoonDefault with default headers values

func (*DestroySpoonDefault) SetPayload

func (o *DestroySpoonDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the destroy spoon default response

func (*DestroySpoonDefault) SetStatusCode

func (o *DestroySpoonDefault) SetStatusCode(code int)

SetStatusCode sets the status to the destroy spoon default response

func (*DestroySpoonDefault) WithPayload

func (o *DestroySpoonDefault) WithPayload(payload *models.Error) *DestroySpoonDefault

WithPayload adds the payload to the destroy spoon default response

func (*DestroySpoonDefault) WithStatusCode

func (o *DestroySpoonDefault) WithStatusCode(code int) *DestroySpoonDefault

WithStatusCode adds the status to the destroy spoon default response

func (*DestroySpoonDefault) WriteResponse

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

WriteResponse to the client

type DestroySpoonHandler

type DestroySpoonHandler interface {
	Handle(DestroySpoonParams, *models.Principal) middleware.Responder
}

DestroySpoonHandler interface for that can handle valid destroy spoon params

type DestroySpoonHandlerFunc

type DestroySpoonHandlerFunc func(DestroySpoonParams, *models.Principal) middleware.Responder

DestroySpoonHandlerFunc turns a function with the right signature into a destroy spoon handler

func (DestroySpoonHandlerFunc) Handle

Handle executing the request and returning a response

type DestroySpoonNoContent

type DestroySpoonNoContent struct {
}

DestroySpoonNoContent Deleted

swagger:response destroySpoonNoContent

func NewDestroySpoonNoContent

func NewDestroySpoonNoContent() *DestroySpoonNoContent

NewDestroySpoonNoContent creates DestroySpoonNoContent with default headers values

func (*DestroySpoonNoContent) WriteResponse

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

WriteResponse to the client

type DestroySpoonNotFound

type DestroySpoonNotFound struct {

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

DestroySpoonNotFound resource not found

swagger:response destroySpoonNotFound

func NewDestroySpoonNotFound

func NewDestroySpoonNotFound() *DestroySpoonNotFound

NewDestroySpoonNotFound creates DestroySpoonNotFound with default headers values

func (*DestroySpoonNotFound) SetPayload

func (o *DestroySpoonNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the destroy spoon not found response

func (*DestroySpoonNotFound) WithPayload

func (o *DestroySpoonNotFound) WithPayload(payload *models.Error) *DestroySpoonNotFound

WithPayload adds the payload to the destroy spoon not found response

func (*DestroySpoonNotFound) WriteResponse

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

WriteResponse to the client

type DestroySpoonParams

type DestroySpoonParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

DestroySpoonParams contains all the bound params for the destroy spoon operation typically these are obtained from a http.Request

swagger:parameters destroy_spoon

func NewDestroySpoonParams

func NewDestroySpoonParams() DestroySpoonParams

NewDestroySpoonParams creates a new DestroySpoonParams object no default values defined in spec.

func (*DestroySpoonParams) BindRequest

func (o *DestroySpoonParams) 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 NewDestroySpoonParams() beforehand.

type DestroySpoonURL

type DestroySpoonURL struct {
	ID int64
	// contains filtered or unexported fields
}

DestroySpoonURL generates an URL for the destroy spoon operation

func (*DestroySpoonURL) Build

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

Build a url path and query string

func (*DestroySpoonURL) BuildFull

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

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

func (*DestroySpoonURL) Must

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

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

func (*DestroySpoonURL) SetBasePath

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

func (o *DestroySpoonURL) String() string

String returns the string representation of the path with query string

func (*DestroySpoonURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DestroySpoonURL) WithBasePath

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

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 DestroySpoonUnauthorized

type DestroySpoonUnauthorized struct {

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

DestroySpoonUnauthorized unauthorized

swagger:response destroySpoonUnauthorized

func NewDestroySpoonUnauthorized

func NewDestroySpoonUnauthorized() *DestroySpoonUnauthorized

NewDestroySpoonUnauthorized creates DestroySpoonUnauthorized with default headers values

func (*DestroySpoonUnauthorized) SetPayload

func (o *DestroySpoonUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the destroy spoon unauthorized response

func (*DestroySpoonUnauthorized) WithPayload

WithPayload adds the payload to the destroy spoon unauthorized response

func (*DestroySpoonUnauthorized) WriteResponse

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

WriteResponse to the client

type FindSpoons

type FindSpoons struct {
	Context *middleware.Context
	Handler FindSpoonsHandler
}

FindSpoons swagger:route GET /v1/spoons spoons findSpoons

FindSpoons find spoons API

func NewFindSpoons

func NewFindSpoons(ctx *middleware.Context, handler FindSpoonsHandler) *FindSpoons

NewFindSpoons creates a new http.Handler for the find spoons operation

func (*FindSpoons) ServeHTTP

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

type FindSpoonsDefault

type FindSpoonsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

FindSpoonsDefault generic error response

swagger:response findSpoonsDefault

func NewFindSpoonsDefault

func NewFindSpoonsDefault(code int) *FindSpoonsDefault

NewFindSpoonsDefault creates FindSpoonsDefault with default headers values

func (*FindSpoonsDefault) SetPayload

func (o *FindSpoonsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the find spoons default response

func (*FindSpoonsDefault) SetStatusCode

func (o *FindSpoonsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the find spoons default response

func (*FindSpoonsDefault) WithPayload

func (o *FindSpoonsDefault) WithPayload(payload *models.Error) *FindSpoonsDefault

WithPayload adds the payload to the find spoons default response

func (*FindSpoonsDefault) WithStatusCode

func (o *FindSpoonsDefault) WithStatusCode(code int) *FindSpoonsDefault

WithStatusCode adds the status to the find spoons default response

func (*FindSpoonsDefault) WriteResponse

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

WriteResponse to the client

type FindSpoonsHandler

type FindSpoonsHandler interface {
	Handle(FindSpoonsParams, *models.Principal) middleware.Responder
}

FindSpoonsHandler interface for that can handle valid find spoons params

type FindSpoonsHandlerFunc

type FindSpoonsHandlerFunc func(FindSpoonsParams, *models.Principal) middleware.Responder

FindSpoonsHandlerFunc turns a function with the right signature into a find spoons handler

func (FindSpoonsHandlerFunc) Handle

Handle executing the request and returning a response

type FindSpoonsNotFound

type FindSpoonsNotFound struct {

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

FindSpoonsNotFound resource not found

swagger:response findSpoonsNotFound

func NewFindSpoonsNotFound

func NewFindSpoonsNotFound() *FindSpoonsNotFound

NewFindSpoonsNotFound creates FindSpoonsNotFound with default headers values

func (*FindSpoonsNotFound) SetPayload

func (o *FindSpoonsNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the find spoons not found response

func (*FindSpoonsNotFound) WithPayload

func (o *FindSpoonsNotFound) WithPayload(payload *models.Error) *FindSpoonsNotFound

WithPayload adds the payload to the find spoons not found response

func (*FindSpoonsNotFound) WriteResponse

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

WriteResponse to the client

type FindSpoonsOK

type FindSpoonsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Item `json:"body,omitempty"`
}

FindSpoonsOK list the spoon operations

swagger:response findSpoonsOK

func NewFindSpoonsOK

func NewFindSpoonsOK() *FindSpoonsOK

NewFindSpoonsOK creates FindSpoonsOK with default headers values

func (*FindSpoonsOK) SetPayload

func (o *FindSpoonsOK) SetPayload(payload []*models.Item)

SetPayload sets the payload to the find spoons o k response

func (*FindSpoonsOK) WithPayload

func (o *FindSpoonsOK) WithPayload(payload []*models.Item) *FindSpoonsOK

WithPayload adds the payload to the find spoons o k response

func (*FindSpoonsOK) WriteResponse

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

WriteResponse to the client

type FindSpoonsParams

type FindSpoonsParams struct {

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

	/*
	  In: query
	  Default: 20
	*/
	Limit *int32
	/*
	  In: query
	*/
	Since *int64
}

FindSpoonsParams contains all the bound params for the find spoons operation typically these are obtained from a http.Request

swagger:parameters find_spoons

func NewFindSpoonsParams

func NewFindSpoonsParams() FindSpoonsParams

NewFindSpoonsParams creates a new FindSpoonsParams object with the default values initialized.

func (*FindSpoonsParams) BindRequest

func (o *FindSpoonsParams) 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 NewFindSpoonsParams() beforehand.

type FindSpoonsURL

type FindSpoonsURL struct {
	Limit *int32
	Since *int64
	// contains filtered or unexported fields
}

FindSpoonsURL generates an URL for the find spoons operation

func (*FindSpoonsURL) Build

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

Build a url path and query string

func (*FindSpoonsURL) BuildFull

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

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

func (*FindSpoonsURL) Must

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

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

func (*FindSpoonsURL) SetBasePath

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

func (o *FindSpoonsURL) String() string

String returns the string representation of the path with query string

func (*FindSpoonsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FindSpoonsURL) WithBasePath

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

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 FindSpoonsUnauthorized

type FindSpoonsUnauthorized struct {

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

FindSpoonsUnauthorized unauthorized

swagger:response findSpoonsUnauthorized

func NewFindSpoonsUnauthorized

func NewFindSpoonsUnauthorized() *FindSpoonsUnauthorized

NewFindSpoonsUnauthorized creates FindSpoonsUnauthorized with default headers values

func (*FindSpoonsUnauthorized) SetPayload

func (o *FindSpoonsUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the find spoons unauthorized response

func (*FindSpoonsUnauthorized) WithPayload

func (o *FindSpoonsUnauthorized) WithPayload(payload *models.Error) *FindSpoonsUnauthorized

WithPayload adds the payload to the find spoons unauthorized response

func (*FindSpoonsUnauthorized) WriteResponse

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

WriteResponse to the client

type GetSpoon

type GetSpoon struct {
	Context *middleware.Context
	Handler GetSpoonHandler
}

GetSpoon swagger:route GET /v1/spoons/{id} spoons getSpoon

GetSpoon get spoon API

func NewGetSpoon

func NewGetSpoon(ctx *middleware.Context, handler GetSpoonHandler) *GetSpoon

NewGetSpoon creates a new http.Handler for the get spoon operation

func (*GetSpoon) ServeHTTP

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

type GetSpoonDefault

type GetSpoonDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetSpoonDefault generic error response

swagger:response getSpoonDefault

func NewGetSpoonDefault

func NewGetSpoonDefault(code int) *GetSpoonDefault

NewGetSpoonDefault creates GetSpoonDefault with default headers values

func (*GetSpoonDefault) SetPayload

func (o *GetSpoonDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get spoon default response

func (*GetSpoonDefault) SetStatusCode

func (o *GetSpoonDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get spoon default response

func (*GetSpoonDefault) WithPayload

func (o *GetSpoonDefault) WithPayload(payload *models.Error) *GetSpoonDefault

WithPayload adds the payload to the get spoon default response

func (*GetSpoonDefault) WithStatusCode

func (o *GetSpoonDefault) WithStatusCode(code int) *GetSpoonDefault

WithStatusCode adds the status to the get spoon default response

func (*GetSpoonDefault) WriteResponse

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

WriteResponse to the client

type GetSpoonHandler

type GetSpoonHandler interface {
	Handle(GetSpoonParams, *models.Principal) middleware.Responder
}

GetSpoonHandler interface for that can handle valid get spoon params

type GetSpoonHandlerFunc

type GetSpoonHandlerFunc func(GetSpoonParams, *models.Principal) middleware.Responder

GetSpoonHandlerFunc turns a function with the right signature into a get spoon handler

func (GetSpoonHandlerFunc) Handle

Handle executing the request and returning a response

type GetSpoonNotFound

type GetSpoonNotFound struct {

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

GetSpoonNotFound resource not found

swagger:response getSpoonNotFound

func NewGetSpoonNotFound

func NewGetSpoonNotFound() *GetSpoonNotFound

NewGetSpoonNotFound creates GetSpoonNotFound with default headers values

func (*GetSpoonNotFound) SetPayload

func (o *GetSpoonNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the get spoon not found response

func (*GetSpoonNotFound) WithPayload

func (o *GetSpoonNotFound) WithPayload(payload *models.Error) *GetSpoonNotFound

WithPayload adds the payload to the get spoon not found response

func (*GetSpoonNotFound) WriteResponse

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

WriteResponse to the client

type GetSpoonOK

type GetSpoonOK struct {

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

GetSpoonOK get a spoon operation

swagger:response getSpoonOK

func NewGetSpoonOK

func NewGetSpoonOK() *GetSpoonOK

NewGetSpoonOK creates GetSpoonOK with default headers values

func (*GetSpoonOK) SetPayload

func (o *GetSpoonOK) SetPayload(payload *models.Item)

SetPayload sets the payload to the get spoon o k response

func (*GetSpoonOK) WithPayload

func (o *GetSpoonOK) WithPayload(payload *models.Item) *GetSpoonOK

WithPayload adds the payload to the get spoon o k response

func (*GetSpoonOK) WriteResponse

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

WriteResponse to the client

type GetSpoonParams

type GetSpoonParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

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

swagger:parameters get_spoon

func NewGetSpoonParams

func NewGetSpoonParams() GetSpoonParams

NewGetSpoonParams creates a new GetSpoonParams object no default values defined in spec.

func (*GetSpoonParams) BindRequest

func (o *GetSpoonParams) 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 NewGetSpoonParams() beforehand.

type GetSpoonURL

type GetSpoonURL struct {
	ID int64
	// contains filtered or unexported fields
}

GetSpoonURL generates an URL for the get spoon operation

func (*GetSpoonURL) Build

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

Build a url path and query string

func (*GetSpoonURL) BuildFull

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

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

func (*GetSpoonURL) Must

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

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

func (*GetSpoonURL) SetBasePath

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

func (o *GetSpoonURL) String() string

String returns the string representation of the path with query string

func (*GetSpoonURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetSpoonURL) WithBasePath

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

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 GetSpoonUnauthorized

type GetSpoonUnauthorized struct {

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

GetSpoonUnauthorized unauthorized

swagger:response getSpoonUnauthorized

func NewGetSpoonUnauthorized

func NewGetSpoonUnauthorized() *GetSpoonUnauthorized

NewGetSpoonUnauthorized creates GetSpoonUnauthorized with default headers values

func (*GetSpoonUnauthorized) SetPayload

func (o *GetSpoonUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the get spoon unauthorized response

func (*GetSpoonUnauthorized) WithPayload

func (o *GetSpoonUnauthorized) WithPayload(payload *models.Error) *GetSpoonUnauthorized

WithPayload adds the payload to the get spoon unauthorized response

func (*GetSpoonUnauthorized) WriteResponse

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

WriteResponse to the client

type UpdateSpoon

type UpdateSpoon struct {
	Context *middleware.Context
	Handler UpdateSpoonHandler
}

UpdateSpoon swagger:route PUT /v1/spoons/{id} spoons updateSpoon

UpdateSpoon update spoon API

func NewUpdateSpoon

func NewUpdateSpoon(ctx *middleware.Context, handler UpdateSpoonHandler) *UpdateSpoon

NewUpdateSpoon creates a new http.Handler for the update spoon operation

func (*UpdateSpoon) ServeHTTP

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

type UpdateSpoonDefault

type UpdateSpoonDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdateSpoonDefault error

swagger:response updateSpoonDefault

func NewUpdateSpoonDefault

func NewUpdateSpoonDefault(code int) *UpdateSpoonDefault

NewUpdateSpoonDefault creates UpdateSpoonDefault with default headers values

func (*UpdateSpoonDefault) SetPayload

func (o *UpdateSpoonDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update spoon default response

func (*UpdateSpoonDefault) SetStatusCode

func (o *UpdateSpoonDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update spoon default response

func (*UpdateSpoonDefault) WithPayload

func (o *UpdateSpoonDefault) WithPayload(payload *models.Error) *UpdateSpoonDefault

WithPayload adds the payload to the update spoon default response

func (*UpdateSpoonDefault) WithStatusCode

func (o *UpdateSpoonDefault) WithStatusCode(code int) *UpdateSpoonDefault

WithStatusCode adds the status to the update spoon default response

func (*UpdateSpoonDefault) WriteResponse

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

WriteResponse to the client

type UpdateSpoonHandler

type UpdateSpoonHandler interface {
	Handle(UpdateSpoonParams, *models.Principal) middleware.Responder
}

UpdateSpoonHandler interface for that can handle valid update spoon params

type UpdateSpoonHandlerFunc

type UpdateSpoonHandlerFunc func(UpdateSpoonParams, *models.Principal) middleware.Responder

UpdateSpoonHandlerFunc turns a function with the right signature into a update spoon handler

func (UpdateSpoonHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateSpoonNotFound

type UpdateSpoonNotFound struct {

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

UpdateSpoonNotFound resource not found

swagger:response updateSpoonNotFound

func NewUpdateSpoonNotFound

func NewUpdateSpoonNotFound() *UpdateSpoonNotFound

NewUpdateSpoonNotFound creates UpdateSpoonNotFound with default headers values

func (*UpdateSpoonNotFound) SetPayload

func (o *UpdateSpoonNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the update spoon not found response

func (*UpdateSpoonNotFound) WithPayload

func (o *UpdateSpoonNotFound) WithPayload(payload *models.Error) *UpdateSpoonNotFound

WithPayload adds the payload to the update spoon not found response

func (*UpdateSpoonNotFound) WriteResponse

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

WriteResponse to the client

type UpdateSpoonOK

type UpdateSpoonOK struct {

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

UpdateSpoonOK OK

swagger:response updateSpoonOK

func NewUpdateSpoonOK

func NewUpdateSpoonOK() *UpdateSpoonOK

NewUpdateSpoonOK creates UpdateSpoonOK with default headers values

func (*UpdateSpoonOK) SetPayload

func (o *UpdateSpoonOK) SetPayload(payload *models.Item)

SetPayload sets the payload to the update spoon o k response

func (*UpdateSpoonOK) WithPayload

func (o *UpdateSpoonOK) WithPayload(payload *models.Item) *UpdateSpoonOK

WithPayload adds the payload to the update spoon o k response

func (*UpdateSpoonOK) WriteResponse

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

WriteResponse to the client

type UpdateSpoonParams

type UpdateSpoonParams struct {

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

	/*
	  In: body
	*/
	Body *models.Item
	/*
	  Required: true
	  In: path
	*/
	ID int64
}

UpdateSpoonParams contains all the bound params for the update spoon operation typically these are obtained from a http.Request

swagger:parameters update_spoon

func NewUpdateSpoonParams

func NewUpdateSpoonParams() UpdateSpoonParams

NewUpdateSpoonParams creates a new UpdateSpoonParams object no default values defined in spec.

func (*UpdateSpoonParams) BindRequest

func (o *UpdateSpoonParams) 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 NewUpdateSpoonParams() beforehand.

type UpdateSpoonURL

type UpdateSpoonURL struct {
	ID int64
	// contains filtered or unexported fields
}

UpdateSpoonURL generates an URL for the update spoon operation

func (*UpdateSpoonURL) Build

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

Build a url path and query string

func (*UpdateSpoonURL) BuildFull

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

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

func (*UpdateSpoonURL) Must

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

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

func (*UpdateSpoonURL) SetBasePath

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

func (o *UpdateSpoonURL) String() string

String returns the string representation of the path with query string

func (*UpdateSpoonURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateSpoonURL) WithBasePath

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

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 UpdateSpoonUnauthorized

type UpdateSpoonUnauthorized struct {

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

UpdateSpoonUnauthorized unauthorized

swagger:response updateSpoonUnauthorized

func NewUpdateSpoonUnauthorized

func NewUpdateSpoonUnauthorized() *UpdateSpoonUnauthorized

NewUpdateSpoonUnauthorized creates UpdateSpoonUnauthorized with default headers values

func (*UpdateSpoonUnauthorized) SetPayload

func (o *UpdateSpoonUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the update spoon unauthorized response

func (*UpdateSpoonUnauthorized) WithPayload

func (o *UpdateSpoonUnauthorized) WithPayload(payload *models.Error) *UpdateSpoonUnauthorized

WithPayload adds the payload to the update spoon unauthorized response

func (*UpdateSpoonUnauthorized) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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