Documentation
¶
Index ¶
- Constants
- type DeleteProduct
- type DeleteProductDefault
- func (o *DeleteProductDefault) SetPayload(payload *models.Error)
- func (o *DeleteProductDefault) SetStatusCode(code int)
- func (o *DeleteProductDefault) WithPayload(payload *models.Error) *DeleteProductDefault
- func (o *DeleteProductDefault) WithStatusCode(code int) *DeleteProductDefault
- func (o *DeleteProductDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteProductHandler
- type DeleteProductHandlerFunc
- type DeleteProductNoContent
- type DeleteProductParams
- type DeleteProductURL
- func (o *DeleteProductURL) Build() (*url.URL, error)
- func (o *DeleteProductURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteProductURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteProductURL) SetBasePath(bp string)
- func (o *DeleteProductURL) String() string
- func (o *DeleteProductURL) StringFull(scheme, host string) string
- func (o *DeleteProductURL) WithBasePath(bp string) *DeleteProductURL
- type GetChatItems
- type GetChatItemsDefault
- func (o *GetChatItemsDefault) SetPayload(payload *models.Error)
- func (o *GetChatItemsDefault) SetStatusCode(code int)
- func (o *GetChatItemsDefault) WithPayload(payload *models.Error) *GetChatItemsDefault
- func (o *GetChatItemsDefault) WithStatusCode(code int) *GetChatItemsDefault
- func (o *GetChatItemsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetChatItemsHandler
- type GetChatItemsHandlerFunc
- type GetChatItemsOK
- type GetChatItemsParams
- type GetChatItemsURL
- func (o *GetChatItemsURL) Build() (*url.URL, error)
- func (o *GetChatItemsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetChatItemsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetChatItemsURL) SetBasePath(bp string)
- func (o *GetChatItemsURL) String() string
- func (o *GetChatItemsURL) StringFull(scheme, host string) string
- func (o *GetChatItemsURL) WithBasePath(bp string) *GetChatItemsURL
- type GetProductList
- type GetProductListDefault
- func (o *GetProductListDefault) SetPayload(payload *models.Error)
- func (o *GetProductListDefault) SetStatusCode(code int)
- func (o *GetProductListDefault) WithPayload(payload *models.Error) *GetProductListDefault
- func (o *GetProductListDefault) WithStatusCode(code int) *GetProductListDefault
- func (o *GetProductListDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetProductListHandler
- type GetProductListHandlerFunc
- type GetProductListOK
- type GetProductListParams
- type GetProductListURL
- func (o *GetProductListURL) Build() (*url.URL, error)
- func (o *GetProductListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProductListURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProductListURL) SetBasePath(bp string)
- func (o *GetProductListURL) String() string
- func (o *GetProductListURL) StringFull(scheme, host string) string
- func (o *GetProductListURL) WithBasePath(bp string) *GetProductListURL
- type GetRecipeDetails
- type GetRecipeDetailsDefault
- func (o *GetRecipeDetailsDefault) SetPayload(payload *models.Error)
- func (o *GetRecipeDetailsDefault) SetStatusCode(code int)
- func (o *GetRecipeDetailsDefault) WithPayload(payload *models.Error) *GetRecipeDetailsDefault
- func (o *GetRecipeDetailsDefault) WithStatusCode(code int) *GetRecipeDetailsDefault
- func (o *GetRecipeDetailsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRecipeDetailsHandler
- type GetRecipeDetailsHandlerFunc
- type GetRecipeDetailsOK
- type GetRecipeDetailsParams
- type GetRecipeDetailsURL
- func (o *GetRecipeDetailsURL) Build() (*url.URL, error)
- func (o *GetRecipeDetailsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRecipeDetailsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRecipeDetailsURL) SetBasePath(bp string)
- func (o *GetRecipeDetailsURL) String() string
- func (o *GetRecipeDetailsURL) StringFull(scheme, host string) string
- func (o *GetRecipeDetailsURL) WithBasePath(bp string) *GetRecipeDetailsURL
- type GetRecipeMatchList
- type GetRecipeMatchListDefault
- func (o *GetRecipeMatchListDefault) SetPayload(payload *models.Error)
- func (o *GetRecipeMatchListDefault) SetStatusCode(code int)
- func (o *GetRecipeMatchListDefault) WithPayload(payload *models.Error) *GetRecipeMatchListDefault
- func (o *GetRecipeMatchListDefault) WithStatusCode(code int) *GetRecipeMatchListDefault
- func (o *GetRecipeMatchListDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRecipeMatchListHandler
- type GetRecipeMatchListHandlerFunc
- type GetRecipeMatchListOK
- type GetRecipeMatchListParams
- type GetRecipeMatchListURL
- func (o *GetRecipeMatchListURL) Build() (*url.URL, error)
- func (o *GetRecipeMatchListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRecipeMatchListURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRecipeMatchListURL) SetBasePath(bp string)
- func (o *GetRecipeMatchListURL) String() string
- func (o *GetRecipeMatchListURL) StringFull(scheme, host string) string
- func (o *GetRecipeMatchListURL) WithBasePath(bp string) *GetRecipeMatchListURL
- type InitiateCooking
- type InitiateCookingDefault
- func (o *InitiateCookingDefault) SetPayload(payload *models.Error)
- func (o *InitiateCookingDefault) SetStatusCode(code int)
- func (o *InitiateCookingDefault) WithPayload(payload *models.Error) *InitiateCookingDefault
- func (o *InitiateCookingDefault) WithStatusCode(code int) *InitiateCookingDefault
- func (o *InitiateCookingDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type InitiateCookingHandler
- type InitiateCookingHandlerFunc
- type InitiateCookingNoContent
- type InitiateCookingParams
- type InitiateCookingURL
- func (o *InitiateCookingURL) Build() (*url.URL, error)
- func (o *InitiateCookingURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *InitiateCookingURL) Must(u *url.URL, err error) *url.URL
- func (o *InitiateCookingURL) SetBasePath(bp string)
- func (o *InitiateCookingURL) String() string
- func (o *InitiateCookingURL) StringFull(scheme, host string) string
- func (o *InitiateCookingURL) WithBasePath(bp string) *InitiateCookingURL
- type Login
- type LoginDefault
- func (o *LoginDefault) SetPayload(payload *models.Error)
- func (o *LoginDefault) SetStatusCode(code int)
- func (o *LoginDefault) WithPayload(payload *models.Error) *LoginDefault
- func (o *LoginDefault) WithStatusCode(code int) *LoginDefault
- func (o *LoginDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type LoginHandler
- type LoginHandlerFunc
- type LoginOK
- type LoginParams
- type LoginURL
- func (o *LoginURL) Build() (*url.URL, error)
- func (o *LoginURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LoginURL) Must(u *url.URL, err error) *url.URL
- func (o *LoginURL) SetBasePath(bp string)
- func (o *LoginURL) String() string
- func (o *LoginURL) StringFull(scheme, host string) string
- func (o *LoginURL) WithBasePath(bp string) *LoginURL
- type PostChatItem
- type PostChatItemDefault
- func (o *PostChatItemDefault) SetPayload(payload *models.Error)
- func (o *PostChatItemDefault) SetStatusCode(code int)
- func (o *PostChatItemDefault) WithPayload(payload *models.Error) *PostChatItemDefault
- func (o *PostChatItemDefault) WithStatusCode(code int) *PostChatItemDefault
- func (o *PostChatItemDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostChatItemHandler
- type PostChatItemHandlerFunc
- type PostChatItemNoContent
- type PostChatItemParams
- type PostChatItemURL
- func (o *PostChatItemURL) Build() (*url.URL, error)
- func (o *PostChatItemURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostChatItemURL) Must(u *url.URL, err error) *url.URL
- func (o *PostChatItemURL) SetBasePath(bp string)
- func (o *PostChatItemURL) String() string
- func (o *PostChatItemURL) StringFull(scheme, host string) string
- func (o *PostChatItemURL) WithBasePath(bp string) *PostChatItemURL
- type RejectCooking
- type RejectCookingDefault
- func (o *RejectCookingDefault) SetPayload(payload *models.Error)
- func (o *RejectCookingDefault) SetStatusCode(code int)
- func (o *RejectCookingDefault) WithPayload(payload *models.Error) *RejectCookingDefault
- func (o *RejectCookingDefault) WithStatusCode(code int) *RejectCookingDefault
- func (o *RejectCookingDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RejectCookingHandler
- type RejectCookingHandlerFunc
- type RejectCookingNoContent
- type RejectCookingParams
- type RejectCookingURL
- func (o *RejectCookingURL) Build() (*url.URL, error)
- func (o *RejectCookingURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RejectCookingURL) Must(u *url.URL, err error) *url.URL
- func (o *RejectCookingURL) SetBasePath(bp string)
- func (o *RejectCookingURL) String() string
- func (o *RejectCookingURL) StringFull(scheme, host string) string
- func (o *RejectCookingURL) WithBasePath(bp string) *RejectCookingURL
Constants ¶
const DeleteProductNoContentCode int = 204
DeleteProductNoContentCode is the HTTP code returned for type DeleteProductNoContent
const GetChatItemsOKCode int = 200
GetChatItemsOKCode is the HTTP code returned for type GetChatItemsOK
const GetProductListOKCode int = 200
GetProductListOKCode is the HTTP code returned for type GetProductListOK
const GetRecipeDetailsOKCode int = 200
GetRecipeDetailsOKCode is the HTTP code returned for type GetRecipeDetailsOK
const GetRecipeMatchListOKCode int = 200
GetRecipeMatchListOKCode is the HTTP code returned for type GetRecipeMatchListOK
const InitiateCookingNoContentCode int = 204
InitiateCookingNoContentCode is the HTTP code returned for type InitiateCookingNoContent
const LoginOKCode int = 200
LoginOKCode is the HTTP code returned for type LoginOK
const PostChatItemNoContentCode int = 204
PostChatItemNoContentCode is the HTTP code returned for type PostChatItemNoContent
const RejectCookingNoContentCode int = 204
RejectCookingNoContentCode is the HTTP code returned for type RejectCookingNoContent
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteProduct ¶
type DeleteProduct struct { Context *middleware.Context Handler DeleteProductHandler }
DeleteProduct swagger:route DELETE /product/{id} user deleteProduct
Delete product from user list
func NewDeleteProduct ¶
func NewDeleteProduct(ctx *middleware.Context, handler DeleteProductHandler) *DeleteProduct
NewDeleteProduct creates a new http.Handler for the delete product operation
func (*DeleteProduct) ServeHTTP ¶
func (o *DeleteProduct) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteProductDefault ¶
type DeleteProductDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteProductDefault Error
swagger:response deleteProductDefault
func NewDeleteProductDefault ¶
func NewDeleteProductDefault(code int) *DeleteProductDefault
NewDeleteProductDefault creates DeleteProductDefault with default headers values
func (*DeleteProductDefault) SetPayload ¶
func (o *DeleteProductDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete product default response
func (*DeleteProductDefault) SetStatusCode ¶
func (o *DeleteProductDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete product default response
func (*DeleteProductDefault) WithPayload ¶
func (o *DeleteProductDefault) WithPayload(payload *models.Error) *DeleteProductDefault
WithPayload adds the payload to the delete product default response
func (*DeleteProductDefault) WithStatusCode ¶
func (o *DeleteProductDefault) WithStatusCode(code int) *DeleteProductDefault
WithStatusCode adds the status to the delete product default response
func (*DeleteProductDefault) WriteResponse ¶
func (o *DeleteProductDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteProductHandler ¶
type DeleteProductHandler interface {
Handle(DeleteProductParams, interface{}) middleware.Responder
}
DeleteProductHandler interface for that can handle valid delete product params
type DeleteProductHandlerFunc ¶
type DeleteProductHandlerFunc func(DeleteProductParams, interface{}) middleware.Responder
DeleteProductHandlerFunc turns a function with the right signature into a delete product handler
func (DeleteProductHandlerFunc) Handle ¶
func (fn DeleteProductHandlerFunc) Handle(params DeleteProductParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteProductNoContent ¶
type DeleteProductNoContent struct { }
DeleteProductNoContent Product deleted
swagger:response deleteProductNoContent
func NewDeleteProductNoContent ¶
func NewDeleteProductNoContent() *DeleteProductNoContent
NewDeleteProductNoContent creates DeleteProductNoContent with default headers values
func (*DeleteProductNoContent) WriteResponse ¶
func (o *DeleteProductNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteProductParams ¶
type DeleteProductParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID string }
DeleteProductParams contains all the bound params for the delete product operation typically these are obtained from a http.Request
swagger:parameters deleteProduct
func NewDeleteProductParams ¶
func NewDeleteProductParams() DeleteProductParams
NewDeleteProductParams creates a new DeleteProductParams object no default values defined in spec.
func (*DeleteProductParams) BindRequest ¶
func (o *DeleteProductParams) 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 NewDeleteProductParams() beforehand.
type DeleteProductURL ¶
type DeleteProductURL struct { ID string // contains filtered or unexported fields }
DeleteProductURL generates an URL for the delete product operation
func (*DeleteProductURL) Build ¶
func (o *DeleteProductURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteProductURL) BuildFull ¶
func (o *DeleteProductURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteProductURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteProductURL) SetBasePath ¶
func (o *DeleteProductURL) 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 (*DeleteProductURL) String ¶
func (o *DeleteProductURL) String() string
String returns the string representation of the path with query string
func (*DeleteProductURL) StringFull ¶
func (o *DeleteProductURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteProductURL) WithBasePath ¶
func (o *DeleteProductURL) WithBasePath(bp string) *DeleteProductURL
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 GetChatItems ¶
type GetChatItems struct { Context *middleware.Context Handler GetChatItemsHandler }
GetChatItems swagger:route GET /match/{id}/chat user getChatItems
Get items from the chat
func NewGetChatItems ¶
func NewGetChatItems(ctx *middleware.Context, handler GetChatItemsHandler) *GetChatItems
NewGetChatItems creates a new http.Handler for the get chat items operation
func (*GetChatItems) ServeHTTP ¶
func (o *GetChatItems) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetChatItemsDefault ¶
type GetChatItemsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetChatItemsDefault Error
swagger:response getChatItemsDefault
func NewGetChatItemsDefault ¶
func NewGetChatItemsDefault(code int) *GetChatItemsDefault
NewGetChatItemsDefault creates GetChatItemsDefault with default headers values
func (*GetChatItemsDefault) SetPayload ¶
func (o *GetChatItemsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get chat items default response
func (*GetChatItemsDefault) SetStatusCode ¶
func (o *GetChatItemsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get chat items default response
func (*GetChatItemsDefault) WithPayload ¶
func (o *GetChatItemsDefault) WithPayload(payload *models.Error) *GetChatItemsDefault
WithPayload adds the payload to the get chat items default response
func (*GetChatItemsDefault) WithStatusCode ¶
func (o *GetChatItemsDefault) WithStatusCode(code int) *GetChatItemsDefault
WithStatusCode adds the status to the get chat items default response
func (*GetChatItemsDefault) WriteResponse ¶
func (o *GetChatItemsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetChatItemsHandler ¶
type GetChatItemsHandler interface {
Handle(GetChatItemsParams, interface{}) middleware.Responder
}
GetChatItemsHandler interface for that can handle valid get chat items params
type GetChatItemsHandlerFunc ¶
type GetChatItemsHandlerFunc func(GetChatItemsParams, interface{}) middleware.Responder
GetChatItemsHandlerFunc turns a function with the right signature into a get chat items handler
func (GetChatItemsHandlerFunc) Handle ¶
func (fn GetChatItemsHandlerFunc) Handle(params GetChatItemsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetChatItemsOK ¶
type GetChatItemsOK struct { /* In: Body */ Payload models.ChatItemList `json:"body,omitempty"` }
GetChatItemsOK Recipe details
swagger:response getChatItemsOK
func NewGetChatItemsOK ¶
func NewGetChatItemsOK() *GetChatItemsOK
NewGetChatItemsOK creates GetChatItemsOK with default headers values
func (*GetChatItemsOK) SetPayload ¶
func (o *GetChatItemsOK) SetPayload(payload models.ChatItemList)
SetPayload sets the payload to the get chat items o k response
func (*GetChatItemsOK) WithPayload ¶
func (o *GetChatItemsOK) WithPayload(payload models.ChatItemList) *GetChatItemsOK
WithPayload adds the payload to the get chat items o k response
func (*GetChatItemsOK) WriteResponse ¶
func (o *GetChatItemsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetChatItemsParams ¶
type GetChatItemsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID string }
GetChatItemsParams contains all the bound params for the get chat items operation typically these are obtained from a http.Request
swagger:parameters getChatItems
func NewGetChatItemsParams ¶
func NewGetChatItemsParams() GetChatItemsParams
NewGetChatItemsParams creates a new GetChatItemsParams object no default values defined in spec.
func (*GetChatItemsParams) BindRequest ¶
func (o *GetChatItemsParams) 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 NewGetChatItemsParams() beforehand.
type GetChatItemsURL ¶
type GetChatItemsURL struct { ID string // contains filtered or unexported fields }
GetChatItemsURL generates an URL for the get chat items operation
func (*GetChatItemsURL) Build ¶
func (o *GetChatItemsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetChatItemsURL) BuildFull ¶
func (o *GetChatItemsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetChatItemsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetChatItemsURL) SetBasePath ¶
func (o *GetChatItemsURL) 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 (*GetChatItemsURL) String ¶
func (o *GetChatItemsURL) String() string
String returns the string representation of the path with query string
func (*GetChatItemsURL) StringFull ¶
func (o *GetChatItemsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetChatItemsURL) WithBasePath ¶
func (o *GetChatItemsURL) WithBasePath(bp string) *GetChatItemsURL
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 GetProductList ¶
type GetProductList struct { Context *middleware.Context Handler GetProductListHandler }
GetProductList swagger:route GET /product user getProductList
Get list of user products
func NewGetProductList ¶
func NewGetProductList(ctx *middleware.Context, handler GetProductListHandler) *GetProductList
NewGetProductList creates a new http.Handler for the get product list operation
func (*GetProductList) ServeHTTP ¶
func (o *GetProductList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetProductListDefault ¶
type GetProductListDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetProductListDefault Error
swagger:response getProductListDefault
func NewGetProductListDefault ¶
func NewGetProductListDefault(code int) *GetProductListDefault
NewGetProductListDefault creates GetProductListDefault with default headers values
func (*GetProductListDefault) SetPayload ¶
func (o *GetProductListDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get product list default response
func (*GetProductListDefault) SetStatusCode ¶
func (o *GetProductListDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get product list default response
func (*GetProductListDefault) WithPayload ¶
func (o *GetProductListDefault) WithPayload(payload *models.Error) *GetProductListDefault
WithPayload adds the payload to the get product list default response
func (*GetProductListDefault) WithStatusCode ¶
func (o *GetProductListDefault) WithStatusCode(code int) *GetProductListDefault
WithStatusCode adds the status to the get product list default response
func (*GetProductListDefault) WriteResponse ¶
func (o *GetProductListDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProductListHandler ¶
type GetProductListHandler interface {
Handle(GetProductListParams, interface{}) middleware.Responder
}
GetProductListHandler interface for that can handle valid get product list params
type GetProductListHandlerFunc ¶
type GetProductListHandlerFunc func(GetProductListParams, interface{}) middleware.Responder
GetProductListHandlerFunc turns a function with the right signature into a get product list handler
func (GetProductListHandlerFunc) Handle ¶
func (fn GetProductListHandlerFunc) Handle(params GetProductListParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetProductListOK ¶
type GetProductListOK struct { /* In: Body */ Payload models.ProductList `json:"body,omitempty"` }
GetProductListOK Product list
swagger:response getProductListOK
func NewGetProductListOK ¶
func NewGetProductListOK() *GetProductListOK
NewGetProductListOK creates GetProductListOK with default headers values
func (*GetProductListOK) SetPayload ¶
func (o *GetProductListOK) SetPayload(payload models.ProductList)
SetPayload sets the payload to the get product list o k response
func (*GetProductListOK) WithPayload ¶
func (o *GetProductListOK) WithPayload(payload models.ProductList) *GetProductListOK
WithPayload adds the payload to the get product list o k response
func (*GetProductListOK) WriteResponse ¶
func (o *GetProductListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProductListParams ¶
GetProductListParams contains all the bound params for the get product list operation typically these are obtained from a http.Request
swagger:parameters getProductList
func NewGetProductListParams ¶
func NewGetProductListParams() GetProductListParams
NewGetProductListParams creates a new GetProductListParams object no default values defined in spec.
func (*GetProductListParams) BindRequest ¶
func (o *GetProductListParams) 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 NewGetProductListParams() beforehand.
type GetProductListURL ¶
type GetProductListURL struct {
// contains filtered or unexported fields
}
GetProductListURL generates an URL for the get product list operation
func (*GetProductListURL) Build ¶
func (o *GetProductListURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetProductListURL) BuildFull ¶
func (o *GetProductListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetProductListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetProductListURL) SetBasePath ¶
func (o *GetProductListURL) 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 (*GetProductListURL) String ¶
func (o *GetProductListURL) String() string
String returns the string representation of the path with query string
func (*GetProductListURL) StringFull ¶
func (o *GetProductListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetProductListURL) WithBasePath ¶
func (o *GetProductListURL) WithBasePath(bp string) *GetProductListURL
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 GetRecipeDetails ¶
type GetRecipeDetails struct { Context *middleware.Context Handler GetRecipeDetailsHandler }
GetRecipeDetails swagger:route GET /match/{id} user getRecipeDetails
Get details of the matched recipe
func NewGetRecipeDetails ¶
func NewGetRecipeDetails(ctx *middleware.Context, handler GetRecipeDetailsHandler) *GetRecipeDetails
NewGetRecipeDetails creates a new http.Handler for the get recipe details operation
func (*GetRecipeDetails) ServeHTTP ¶
func (o *GetRecipeDetails) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRecipeDetailsDefault ¶
type GetRecipeDetailsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetRecipeDetailsDefault Error
swagger:response getRecipeDetailsDefault
func NewGetRecipeDetailsDefault ¶
func NewGetRecipeDetailsDefault(code int) *GetRecipeDetailsDefault
NewGetRecipeDetailsDefault creates GetRecipeDetailsDefault with default headers values
func (*GetRecipeDetailsDefault) SetPayload ¶
func (o *GetRecipeDetailsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get recipe details default response
func (*GetRecipeDetailsDefault) SetStatusCode ¶
func (o *GetRecipeDetailsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get recipe details default response
func (*GetRecipeDetailsDefault) WithPayload ¶
func (o *GetRecipeDetailsDefault) WithPayload(payload *models.Error) *GetRecipeDetailsDefault
WithPayload adds the payload to the get recipe details default response
func (*GetRecipeDetailsDefault) WithStatusCode ¶
func (o *GetRecipeDetailsDefault) WithStatusCode(code int) *GetRecipeDetailsDefault
WithStatusCode adds the status to the get recipe details default response
func (*GetRecipeDetailsDefault) WriteResponse ¶
func (o *GetRecipeDetailsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRecipeDetailsHandler ¶
type GetRecipeDetailsHandler interface {
Handle(GetRecipeDetailsParams, interface{}) middleware.Responder
}
GetRecipeDetailsHandler interface for that can handle valid get recipe details params
type GetRecipeDetailsHandlerFunc ¶
type GetRecipeDetailsHandlerFunc func(GetRecipeDetailsParams, interface{}) middleware.Responder
GetRecipeDetailsHandlerFunc turns a function with the right signature into a get recipe details handler
func (GetRecipeDetailsHandlerFunc) Handle ¶
func (fn GetRecipeDetailsHandlerFunc) Handle(params GetRecipeDetailsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetRecipeDetailsOK ¶
type GetRecipeDetailsOK struct { /* In: Body */ Payload *models.RecipeDetails `json:"body,omitempty"` }
GetRecipeDetailsOK Recipe details
swagger:response getRecipeDetailsOK
func NewGetRecipeDetailsOK ¶
func NewGetRecipeDetailsOK() *GetRecipeDetailsOK
NewGetRecipeDetailsOK creates GetRecipeDetailsOK with default headers values
func (*GetRecipeDetailsOK) SetPayload ¶
func (o *GetRecipeDetailsOK) SetPayload(payload *models.RecipeDetails)
SetPayload sets the payload to the get recipe details o k response
func (*GetRecipeDetailsOK) WithPayload ¶
func (o *GetRecipeDetailsOK) WithPayload(payload *models.RecipeDetails) *GetRecipeDetailsOK
WithPayload adds the payload to the get recipe details o k response
func (*GetRecipeDetailsOK) WriteResponse ¶
func (o *GetRecipeDetailsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRecipeDetailsParams ¶
type GetRecipeDetailsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID string }
GetRecipeDetailsParams contains all the bound params for the get recipe details operation typically these are obtained from a http.Request
swagger:parameters getRecipeDetails
func NewGetRecipeDetailsParams ¶
func NewGetRecipeDetailsParams() GetRecipeDetailsParams
NewGetRecipeDetailsParams creates a new GetRecipeDetailsParams object no default values defined in spec.
func (*GetRecipeDetailsParams) BindRequest ¶
func (o *GetRecipeDetailsParams) 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 NewGetRecipeDetailsParams() beforehand.
type GetRecipeDetailsURL ¶
type GetRecipeDetailsURL struct { ID string // contains filtered or unexported fields }
GetRecipeDetailsURL generates an URL for the get recipe details operation
func (*GetRecipeDetailsURL) Build ¶
func (o *GetRecipeDetailsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRecipeDetailsURL) BuildFull ¶
func (o *GetRecipeDetailsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRecipeDetailsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRecipeDetailsURL) SetBasePath ¶
func (o *GetRecipeDetailsURL) 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 (*GetRecipeDetailsURL) String ¶
func (o *GetRecipeDetailsURL) String() string
String returns the string representation of the path with query string
func (*GetRecipeDetailsURL) StringFull ¶
func (o *GetRecipeDetailsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRecipeDetailsURL) WithBasePath ¶
func (o *GetRecipeDetailsURL) WithBasePath(bp string) *GetRecipeDetailsURL
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 GetRecipeMatchList ¶
type GetRecipeMatchList struct { Context *middleware.Context Handler GetRecipeMatchListHandler }
GetRecipeMatchList swagger:route GET /match user getRecipeMatchList
Get recipes matched for user
func NewGetRecipeMatchList ¶
func NewGetRecipeMatchList(ctx *middleware.Context, handler GetRecipeMatchListHandler) *GetRecipeMatchList
NewGetRecipeMatchList creates a new http.Handler for the get recipe match list operation
func (*GetRecipeMatchList) ServeHTTP ¶
func (o *GetRecipeMatchList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRecipeMatchListDefault ¶
type GetRecipeMatchListDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetRecipeMatchListDefault Error
swagger:response getRecipeMatchListDefault
func NewGetRecipeMatchListDefault ¶
func NewGetRecipeMatchListDefault(code int) *GetRecipeMatchListDefault
NewGetRecipeMatchListDefault creates GetRecipeMatchListDefault with default headers values
func (*GetRecipeMatchListDefault) SetPayload ¶
func (o *GetRecipeMatchListDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get recipe match list default response
func (*GetRecipeMatchListDefault) SetStatusCode ¶
func (o *GetRecipeMatchListDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get recipe match list default response
func (*GetRecipeMatchListDefault) WithPayload ¶
func (o *GetRecipeMatchListDefault) WithPayload(payload *models.Error) *GetRecipeMatchListDefault
WithPayload adds the payload to the get recipe match list default response
func (*GetRecipeMatchListDefault) WithStatusCode ¶
func (o *GetRecipeMatchListDefault) WithStatusCode(code int) *GetRecipeMatchListDefault
WithStatusCode adds the status to the get recipe match list default response
func (*GetRecipeMatchListDefault) WriteResponse ¶
func (o *GetRecipeMatchListDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRecipeMatchListHandler ¶
type GetRecipeMatchListHandler interface {
Handle(GetRecipeMatchListParams, interface{}) middleware.Responder
}
GetRecipeMatchListHandler interface for that can handle valid get recipe match list params
type GetRecipeMatchListHandlerFunc ¶
type GetRecipeMatchListHandlerFunc func(GetRecipeMatchListParams, interface{}) middleware.Responder
GetRecipeMatchListHandlerFunc turns a function with the right signature into a get recipe match list handler
func (GetRecipeMatchListHandlerFunc) Handle ¶
func (fn GetRecipeMatchListHandlerFunc) Handle(params GetRecipeMatchListParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetRecipeMatchListOK ¶
type GetRecipeMatchListOK struct { /* In: Body */ Payload models.RecipeMatchList `json:"body,omitempty"` }
GetRecipeMatchListOK Recipe list
swagger:response getRecipeMatchListOK
func NewGetRecipeMatchListOK ¶
func NewGetRecipeMatchListOK() *GetRecipeMatchListOK
NewGetRecipeMatchListOK creates GetRecipeMatchListOK with default headers values
func (*GetRecipeMatchListOK) SetPayload ¶
func (o *GetRecipeMatchListOK) SetPayload(payload models.RecipeMatchList)
SetPayload sets the payload to the get recipe match list o k response
func (*GetRecipeMatchListOK) WithPayload ¶
func (o *GetRecipeMatchListOK) WithPayload(payload models.RecipeMatchList) *GetRecipeMatchListOK
WithPayload adds the payload to the get recipe match list o k response
func (*GetRecipeMatchListOK) WriteResponse ¶
func (o *GetRecipeMatchListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRecipeMatchListParams ¶
type GetRecipeMatchListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
GetRecipeMatchListParams contains all the bound params for the get recipe match list operation typically these are obtained from a http.Request
swagger:parameters getRecipeMatchList
func NewGetRecipeMatchListParams ¶
func NewGetRecipeMatchListParams() GetRecipeMatchListParams
NewGetRecipeMatchListParams creates a new GetRecipeMatchListParams object no default values defined in spec.
func (*GetRecipeMatchListParams) BindRequest ¶
func (o *GetRecipeMatchListParams) 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 NewGetRecipeMatchListParams() beforehand.
type GetRecipeMatchListURL ¶
type GetRecipeMatchListURL struct {
// contains filtered or unexported fields
}
GetRecipeMatchListURL generates an URL for the get recipe match list operation
func (*GetRecipeMatchListURL) Build ¶
func (o *GetRecipeMatchListURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRecipeMatchListURL) BuildFull ¶
func (o *GetRecipeMatchListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRecipeMatchListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRecipeMatchListURL) SetBasePath ¶
func (o *GetRecipeMatchListURL) 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 (*GetRecipeMatchListURL) String ¶
func (o *GetRecipeMatchListURL) String() string
String returns the string representation of the path with query string
func (*GetRecipeMatchListURL) StringFull ¶
func (o *GetRecipeMatchListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRecipeMatchListURL) WithBasePath ¶
func (o *GetRecipeMatchListURL) WithBasePath(bp string) *GetRecipeMatchListURL
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 InitiateCooking ¶
type InitiateCooking struct { Context *middleware.Context Handler InitiateCookingHandler }
InitiateCooking swagger:route PUT /match/{id} user initiateCooking
Invite to cook together
func NewInitiateCooking ¶
func NewInitiateCooking(ctx *middleware.Context, handler InitiateCookingHandler) *InitiateCooking
NewInitiateCooking creates a new http.Handler for the initiate cooking operation
func (*InitiateCooking) ServeHTTP ¶
func (o *InitiateCooking) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type InitiateCookingDefault ¶
type InitiateCookingDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
InitiateCookingDefault Error
swagger:response initiateCookingDefault
func NewInitiateCookingDefault ¶
func NewInitiateCookingDefault(code int) *InitiateCookingDefault
NewInitiateCookingDefault creates InitiateCookingDefault with default headers values
func (*InitiateCookingDefault) SetPayload ¶
func (o *InitiateCookingDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the initiate cooking default response
func (*InitiateCookingDefault) SetStatusCode ¶
func (o *InitiateCookingDefault) SetStatusCode(code int)
SetStatusCode sets the status to the initiate cooking default response
func (*InitiateCookingDefault) WithPayload ¶
func (o *InitiateCookingDefault) WithPayload(payload *models.Error) *InitiateCookingDefault
WithPayload adds the payload to the initiate cooking default response
func (*InitiateCookingDefault) WithStatusCode ¶
func (o *InitiateCookingDefault) WithStatusCode(code int) *InitiateCookingDefault
WithStatusCode adds the status to the initiate cooking default response
func (*InitiateCookingDefault) WriteResponse ¶
func (o *InitiateCookingDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type InitiateCookingHandler ¶
type InitiateCookingHandler interface {
Handle(InitiateCookingParams, interface{}) middleware.Responder
}
InitiateCookingHandler interface for that can handle valid initiate cooking params
type InitiateCookingHandlerFunc ¶
type InitiateCookingHandlerFunc func(InitiateCookingParams, interface{}) middleware.Responder
InitiateCookingHandlerFunc turns a function with the right signature into a initiate cooking handler
func (InitiateCookingHandlerFunc) Handle ¶
func (fn InitiateCookingHandlerFunc) Handle(params InitiateCookingParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type InitiateCookingNoContent ¶
type InitiateCookingNoContent struct { }
InitiateCookingNoContent Invited
swagger:response initiateCookingNoContent
func NewInitiateCookingNoContent ¶
func NewInitiateCookingNoContent() *InitiateCookingNoContent
NewInitiateCookingNoContent creates InitiateCookingNoContent with default headers values
func (*InitiateCookingNoContent) WriteResponse ¶
func (o *InitiateCookingNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type InitiateCookingParams ¶
type InitiateCookingParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID string }
InitiateCookingParams contains all the bound params for the initiate cooking operation typically these are obtained from a http.Request
swagger:parameters initiateCooking
func NewInitiateCookingParams ¶
func NewInitiateCookingParams() InitiateCookingParams
NewInitiateCookingParams creates a new InitiateCookingParams object no default values defined in spec.
func (*InitiateCookingParams) BindRequest ¶
func (o *InitiateCookingParams) 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 NewInitiateCookingParams() beforehand.
type InitiateCookingURL ¶
type InitiateCookingURL struct { ID string // contains filtered or unexported fields }
InitiateCookingURL generates an URL for the initiate cooking operation
func (*InitiateCookingURL) Build ¶
func (o *InitiateCookingURL) Build() (*url.URL, error)
Build a url path and query string
func (*InitiateCookingURL) BuildFull ¶
func (o *InitiateCookingURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*InitiateCookingURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*InitiateCookingURL) SetBasePath ¶
func (o *InitiateCookingURL) 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 (*InitiateCookingURL) String ¶
func (o *InitiateCookingURL) String() string
String returns the string representation of the path with query string
func (*InitiateCookingURL) StringFull ¶
func (o *InitiateCookingURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*InitiateCookingURL) WithBasePath ¶
func (o *InitiateCookingURL) WithBasePath(bp string) *InitiateCookingURL
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 Login ¶
type Login struct { Context *middleware.Context Handler LoginHandler }
Login swagger:route POST /login user login
User login
func NewLogin ¶
func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login
NewLogin creates a new http.Handler for the login operation
type LoginDefault ¶
type LoginDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
LoginDefault Error
swagger:response loginDefault
func NewLoginDefault ¶
func NewLoginDefault(code int) *LoginDefault
NewLoginDefault creates LoginDefault with default headers values
func (*LoginDefault) SetPayload ¶
func (o *LoginDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the login default response
func (*LoginDefault) SetStatusCode ¶
func (o *LoginDefault) SetStatusCode(code int)
SetStatusCode sets the status to the login default response
func (*LoginDefault) WithPayload ¶
func (o *LoginDefault) WithPayload(payload *models.Error) *LoginDefault
WithPayload adds the payload to the login default response
func (*LoginDefault) WithStatusCode ¶
func (o *LoginDefault) WithStatusCode(code int) *LoginDefault
WithStatusCode adds the status to the login default response
func (*LoginDefault) WriteResponse ¶
func (o *LoginDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginHandler ¶
type LoginHandler interface {
Handle(LoginParams) middleware.Responder
}
LoginHandler interface for that can handle valid login params
type LoginHandlerFunc ¶
type LoginHandlerFunc func(LoginParams) middleware.Responder
LoginHandlerFunc turns a function with the right signature into a login handler
func (LoginHandlerFunc) Handle ¶
func (fn LoginHandlerFunc) Handle(params LoginParams) middleware.Responder
Handle executing the request and returning a response
type LoginOK ¶
type LoginOK struct { /* In: Body */ Payload *models.LoginResponse `json:"body,omitempty"` }
LoginOK OK
swagger:response loginOK
func (*LoginOK) SetPayload ¶
func (o *LoginOK) SetPayload(payload *models.LoginResponse)
SetPayload sets the payload to the login o k response
func (*LoginOK) WithPayload ¶
func (o *LoginOK) WithPayload(payload *models.LoginResponse) *LoginOK
WithPayload adds the payload to the login o k response
func (*LoginOK) WriteResponse ¶
func (o *LoginOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginParams ¶
type LoginParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.LoginRequest }
LoginParams contains all the bound params for the login operation typically these are obtained from a http.Request
swagger:parameters login
func NewLoginParams ¶
func NewLoginParams() LoginParams
NewLoginParams creates a new LoginParams object no default values defined in spec.
func (*LoginParams) BindRequest ¶
func (o *LoginParams) 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 NewLoginParams() beforehand.
type LoginURL ¶
type LoginURL struct {
// contains filtered or unexported fields
}
LoginURL generates an URL for the login operation
func (*LoginURL) SetBasePath ¶
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 (*LoginURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*LoginURL) WithBasePath ¶
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 PostChatItem ¶
type PostChatItem struct { Context *middleware.Context Handler PostChatItemHandler }
PostChatItem swagger:route POST /match/{id}/chat user postChatItem
Post new chat item
func NewPostChatItem ¶
func NewPostChatItem(ctx *middleware.Context, handler PostChatItemHandler) *PostChatItem
NewPostChatItem creates a new http.Handler for the post chat item operation
func (*PostChatItem) ServeHTTP ¶
func (o *PostChatItem) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostChatItemDefault ¶
type PostChatItemDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PostChatItemDefault Error
swagger:response postChatItemDefault
func NewPostChatItemDefault ¶
func NewPostChatItemDefault(code int) *PostChatItemDefault
NewPostChatItemDefault creates PostChatItemDefault with default headers values
func (*PostChatItemDefault) SetPayload ¶
func (o *PostChatItemDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the post chat item default response
func (*PostChatItemDefault) SetStatusCode ¶
func (o *PostChatItemDefault) SetStatusCode(code int)
SetStatusCode sets the status to the post chat item default response
func (*PostChatItemDefault) WithPayload ¶
func (o *PostChatItemDefault) WithPayload(payload *models.Error) *PostChatItemDefault
WithPayload adds the payload to the post chat item default response
func (*PostChatItemDefault) WithStatusCode ¶
func (o *PostChatItemDefault) WithStatusCode(code int) *PostChatItemDefault
WithStatusCode adds the status to the post chat item default response
func (*PostChatItemDefault) WriteResponse ¶
func (o *PostChatItemDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostChatItemHandler ¶
type PostChatItemHandler interface {
Handle(PostChatItemParams, interface{}) middleware.Responder
}
PostChatItemHandler interface for that can handle valid post chat item params
type PostChatItemHandlerFunc ¶
type PostChatItemHandlerFunc func(PostChatItemParams, interface{}) middleware.Responder
PostChatItemHandlerFunc turns a function with the right signature into a post chat item handler
func (PostChatItemHandlerFunc) Handle ¶
func (fn PostChatItemHandlerFunc) Handle(params PostChatItemParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PostChatItemNoContent ¶
type PostChatItemNoContent struct { }
PostChatItemNoContent Posted
swagger:response postChatItemNoContent
func NewPostChatItemNoContent ¶
func NewPostChatItemNoContent() *PostChatItemNoContent
NewPostChatItemNoContent creates PostChatItemNoContent with default headers values
func (*PostChatItemNoContent) WriteResponse ¶
func (o *PostChatItemNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostChatItemParams ¶
type PostChatItemParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.ChatItem /* Required: true In: path */ ID string }
PostChatItemParams contains all the bound params for the post chat item operation typically these are obtained from a http.Request
swagger:parameters postChatItem
func NewPostChatItemParams ¶
func NewPostChatItemParams() PostChatItemParams
NewPostChatItemParams creates a new PostChatItemParams object no default values defined in spec.
func (*PostChatItemParams) BindRequest ¶
func (o *PostChatItemParams) 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 NewPostChatItemParams() beforehand.
type PostChatItemURL ¶
type PostChatItemURL struct { ID string // contains filtered or unexported fields }
PostChatItemURL generates an URL for the post chat item operation
func (*PostChatItemURL) Build ¶
func (o *PostChatItemURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostChatItemURL) BuildFull ¶
func (o *PostChatItemURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostChatItemURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostChatItemURL) SetBasePath ¶
func (o *PostChatItemURL) 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 (*PostChatItemURL) String ¶
func (o *PostChatItemURL) String() string
String returns the string representation of the path with query string
func (*PostChatItemURL) StringFull ¶
func (o *PostChatItemURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostChatItemURL) WithBasePath ¶
func (o *PostChatItemURL) WithBasePath(bp string) *PostChatItemURL
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 RejectCooking ¶
type RejectCooking struct { Context *middleware.Context Handler RejectCookingHandler }
RejectCooking swagger:route DELETE /match/{id} user rejectCooking
Tell other part that not now.
func NewRejectCooking ¶
func NewRejectCooking(ctx *middleware.Context, handler RejectCookingHandler) *RejectCooking
NewRejectCooking creates a new http.Handler for the reject cooking operation
func (*RejectCooking) ServeHTTP ¶
func (o *RejectCooking) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RejectCookingDefault ¶
type RejectCookingDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
RejectCookingDefault Error
swagger:response rejectCookingDefault
func NewRejectCookingDefault ¶
func NewRejectCookingDefault(code int) *RejectCookingDefault
NewRejectCookingDefault creates RejectCookingDefault with default headers values
func (*RejectCookingDefault) SetPayload ¶
func (o *RejectCookingDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the reject cooking default response
func (*RejectCookingDefault) SetStatusCode ¶
func (o *RejectCookingDefault) SetStatusCode(code int)
SetStatusCode sets the status to the reject cooking default response
func (*RejectCookingDefault) WithPayload ¶
func (o *RejectCookingDefault) WithPayload(payload *models.Error) *RejectCookingDefault
WithPayload adds the payload to the reject cooking default response
func (*RejectCookingDefault) WithStatusCode ¶
func (o *RejectCookingDefault) WithStatusCode(code int) *RejectCookingDefault
WithStatusCode adds the status to the reject cooking default response
func (*RejectCookingDefault) WriteResponse ¶
func (o *RejectCookingDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RejectCookingHandler ¶
type RejectCookingHandler interface {
Handle(RejectCookingParams, interface{}) middleware.Responder
}
RejectCookingHandler interface for that can handle valid reject cooking params
type RejectCookingHandlerFunc ¶
type RejectCookingHandlerFunc func(RejectCookingParams, interface{}) middleware.Responder
RejectCookingHandlerFunc turns a function with the right signature into a reject cooking handler
func (RejectCookingHandlerFunc) Handle ¶
func (fn RejectCookingHandlerFunc) Handle(params RejectCookingParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type RejectCookingNoContent ¶
type RejectCookingNoContent struct { }
RejectCookingNoContent Rejected
swagger:response rejectCookingNoContent
func NewRejectCookingNoContent ¶
func NewRejectCookingNoContent() *RejectCookingNoContent
NewRejectCookingNoContent creates RejectCookingNoContent with default headers values
func (*RejectCookingNoContent) WriteResponse ¶
func (o *RejectCookingNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RejectCookingParams ¶
type RejectCookingParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID string }
RejectCookingParams contains all the bound params for the reject cooking operation typically these are obtained from a http.Request
swagger:parameters rejectCooking
func NewRejectCookingParams ¶
func NewRejectCookingParams() RejectCookingParams
NewRejectCookingParams creates a new RejectCookingParams object no default values defined in spec.
func (*RejectCookingParams) BindRequest ¶
func (o *RejectCookingParams) 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 NewRejectCookingParams() beforehand.
type RejectCookingURL ¶
type RejectCookingURL struct { ID string // contains filtered or unexported fields }
RejectCookingURL generates an URL for the reject cooking operation
func (*RejectCookingURL) Build ¶
func (o *RejectCookingURL) Build() (*url.URL, error)
Build a url path and query string
func (*RejectCookingURL) BuildFull ¶
func (o *RejectCookingURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RejectCookingURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RejectCookingURL) SetBasePath ¶
func (o *RejectCookingURL) 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 (*RejectCookingURL) String ¶
func (o *RejectCookingURL) String() string
String returns the string representation of the path with query string
func (*RejectCookingURL) StringFull ¶
func (o *RejectCookingURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RejectCookingURL) WithBasePath ¶
func (o *RejectCookingURL) WithBasePath(bp string) *RejectCookingURL
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
Source Files
¶
- delete_product.go
- delete_product_parameters.go
- delete_product_responses.go
- delete_product_urlbuilder.go
- get_chat_items.go
- get_chat_items_parameters.go
- get_chat_items_responses.go
- get_chat_items_urlbuilder.go
- get_product_list.go
- get_product_list_parameters.go
- get_product_list_responses.go
- get_product_list_urlbuilder.go
- get_recipe_details.go
- get_recipe_details_parameters.go
- get_recipe_details_responses.go
- get_recipe_details_urlbuilder.go
- get_recipe_match_list.go
- get_recipe_match_list_parameters.go
- get_recipe_match_list_responses.go
- get_recipe_match_list_urlbuilder.go
- initiate_cooking.go
- initiate_cooking_parameters.go
- initiate_cooking_responses.go
- initiate_cooking_urlbuilder.go
- login.go
- login_parameters.go
- login_responses.go
- login_urlbuilder.go
- post_chat_item.go
- post_chat_item_parameters.go
- post_chat_item_responses.go
- post_chat_item_urlbuilder.go
- reject_cooking.go
- reject_cooking_parameters.go
- reject_cooking_responses.go
- reject_cooking_urlbuilder.go