Documentation ¶
Index ¶
- type AddOne
- type AddOneCreated
- type AddOneDefault
- func (o *AddOneDefault) SetPayload(payload *models.Error)
- func (o *AddOneDefault) SetStatusCode(code int)
- func (o *AddOneDefault) WithPayload(payload *models.Error) *AddOneDefault
- func (o *AddOneDefault) WithStatusCode(code int) *AddOneDefault
- func (o *AddOneDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddOneHandler
- type AddOneHandlerFunc
- type AddOneParams
- type DestroyOne
- type DestroyOneDefault
- func (o *DestroyOneDefault) SetPayload(payload *models.Error)
- func (o *DestroyOneDefault) SetStatusCode(code int)
- func (o *DestroyOneDefault) WithPayload(payload *models.Error) *DestroyOneDefault
- func (o *DestroyOneDefault) WithStatusCode(code int) *DestroyOneDefault
- func (o *DestroyOneDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DestroyOneHandler
- type DestroyOneHandlerFunc
- type DestroyOneNoContent
- type DestroyOneParams
- type FindTodos
- type FindTodosDefault
- func (o *FindTodosDefault) SetPayload(payload *models.Error)
- func (o *FindTodosDefault) SetStatusCode(code int)
- func (o *FindTodosDefault) WithPayload(payload *models.Error) *FindTodosDefault
- func (o *FindTodosDefault) WithStatusCode(code int) *FindTodosDefault
- func (o *FindTodosDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FindTodosHandler
- type FindTodosHandlerFunc
- type FindTodosOK
- type FindTodosParams
- type UpdateOne
- type UpdateOneDefault
- func (o *UpdateOneDefault) SetPayload(payload *models.Error)
- func (o *UpdateOneDefault) SetStatusCode(code int)
- func (o *UpdateOneDefault) WithPayload(payload *models.Error) *UpdateOneDefault
- func (o *UpdateOneDefault) WithStatusCode(code int) *UpdateOneDefault
- func (o *UpdateOneDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateOneHandler
- type UpdateOneHandlerFunc
- type UpdateOneOK
- type UpdateOneParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOne ¶
type AddOne struct { Context *middleware.Context Handler AddOneHandler }
AddOne swagger:route POST / todos addOne
AddOne add one API
func NewAddOne ¶
func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne
NewAddOne creates a new http.Handler for the add one operation
type AddOneCreated ¶
AddOneCreated Created
swagger:response addOneCreated
func NewAddOneCreated ¶
func NewAddOneCreated() *AddOneCreated
NewAddOneCreated creates AddOneCreated with default headers values
func (*AddOneCreated) SetPayload ¶
func (o *AddOneCreated) SetPayload(payload *models.Item)
SetPayload sets the payload to the add one created response
func (*AddOneCreated) WithPayload ¶
func (o *AddOneCreated) WithPayload(payload *models.Item) *AddOneCreated
WithPayload adds the payload to the add one created response
func (*AddOneCreated) WriteResponse ¶
func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddOneDefault ¶
type AddOneDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
AddOneDefault error
swagger:response addOneDefault
func NewAddOneDefault ¶
func NewAddOneDefault(code int) *AddOneDefault
NewAddOneDefault creates AddOneDefault with default headers values
func (*AddOneDefault) SetPayload ¶
func (o *AddOneDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the add one default response
func (*AddOneDefault) SetStatusCode ¶
func (o *AddOneDefault) SetStatusCode(code int)
SetStatusCode sets the status to the add one default response
func (*AddOneDefault) WithPayload ¶
func (o *AddOneDefault) WithPayload(payload *models.Error) *AddOneDefault
WithPayload adds the payload to the add one default response
func (*AddOneDefault) WithStatusCode ¶
func (o *AddOneDefault) WithStatusCode(code int) *AddOneDefault
WithStatusCode adds the status to the add one default response
func (*AddOneDefault) WriteResponse ¶
func (o *AddOneDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddOneHandler ¶
type AddOneHandler interface {
Handle(AddOneParams) middleware.Responder
}
AddOneHandler interface for that can handle valid add one params
type AddOneHandlerFunc ¶
type AddOneHandlerFunc func(AddOneParams) middleware.Responder
AddOneHandlerFunc turns a function with the right signature into a add one handler
func (AddOneHandlerFunc) Handle ¶
func (fn AddOneHandlerFunc) Handle(params AddOneParams) middleware.Responder
Handle executing the request and returning a response
type AddOneParams ¶
type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request /* In: body */ Body *models.Item }
AddOneParams contains all the bound params for the add one operation typically these are obtained from a http.Request
swagger:parameters addOne
func NewAddOneParams ¶
func NewAddOneParams() AddOneParams
NewAddOneParams creates a new AddOneParams object with the default values initialized.
func (*AddOneParams) BindRequest ¶
func (o *AddOneParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type DestroyOne ¶
type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler }
DestroyOne swagger:route DELETE /{id} todos destroyOne
DestroyOne destroy one API
func NewDestroyOne ¶
func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyOne
NewDestroyOne creates a new http.Handler for the destroy one operation
func (*DestroyOne) ServeHTTP ¶
func (o *DestroyOne) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DestroyOneDefault ¶
type DestroyOneDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DestroyOneDefault error
swagger:response destroyOneDefault
func NewDestroyOneDefault ¶
func NewDestroyOneDefault(code int) *DestroyOneDefault
NewDestroyOneDefault creates DestroyOneDefault with default headers values
func (*DestroyOneDefault) SetPayload ¶
func (o *DestroyOneDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the destroy one default response
func (*DestroyOneDefault) SetStatusCode ¶
func (o *DestroyOneDefault) SetStatusCode(code int)
SetStatusCode sets the status to the destroy one default response
func (*DestroyOneDefault) WithPayload ¶
func (o *DestroyOneDefault) WithPayload(payload *models.Error) *DestroyOneDefault
WithPayload adds the payload to the destroy one default response
func (*DestroyOneDefault) WithStatusCode ¶
func (o *DestroyOneDefault) WithStatusCode(code int) *DestroyOneDefault
WithStatusCode adds the status to the destroy one default response
func (*DestroyOneDefault) WriteResponse ¶
func (o *DestroyOneDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DestroyOneHandler ¶
type DestroyOneHandler interface {
Handle(DestroyOneParams) middleware.Responder
}
DestroyOneHandler interface for that can handle valid destroy one params
type DestroyOneHandlerFunc ¶
type DestroyOneHandlerFunc func(DestroyOneParams) middleware.Responder
DestroyOneHandlerFunc turns a function with the right signature into a destroy one handler
func (DestroyOneHandlerFunc) Handle ¶
func (fn DestroyOneHandlerFunc) Handle(params DestroyOneParams) middleware.Responder
Handle executing the request and returning a response
type DestroyOneNoContent ¶
type DestroyOneNoContent struct { }
DestroyOneNoContent Deleted
swagger:response destroyOneNoContent
func NewDestroyOneNoContent ¶
func NewDestroyOneNoContent() *DestroyOneNoContent
NewDestroyOneNoContent creates DestroyOneNoContent with default headers values
func (*DestroyOneNoContent) WriteResponse ¶
func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DestroyOneParams ¶
type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: path */ ID int64 }
DestroyOneParams contains all the bound params for the destroy one operation typically these are obtained from a http.Request
swagger:parameters destroyOne
func NewDestroyOneParams ¶
func NewDestroyOneParams() DestroyOneParams
NewDestroyOneParams creates a new DestroyOneParams object with the default values initialized.
func (*DestroyOneParams) BindRequest ¶
func (o *DestroyOneParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type FindTodos ¶
type FindTodos struct { Context *middleware.Context Handler FindTodosHandler }
FindTodos swagger:route GET / todos findTodos
FindTodos find todos API
func NewFindTodos ¶
func NewFindTodos(ctx *middleware.Context, handler FindTodosHandler) *FindTodos
NewFindTodos creates a new http.Handler for the find todos operation
type FindTodosDefault ¶
type FindTodosDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
FindTodosDefault generic error response
swagger:response findTodosDefault
func NewFindTodosDefault ¶
func NewFindTodosDefault(code int) *FindTodosDefault
NewFindTodosDefault creates FindTodosDefault with default headers values
func (*FindTodosDefault) SetPayload ¶
func (o *FindTodosDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the find todos default response
func (*FindTodosDefault) SetStatusCode ¶
func (o *FindTodosDefault) SetStatusCode(code int)
SetStatusCode sets the status to the find todos default response
func (*FindTodosDefault) WithPayload ¶
func (o *FindTodosDefault) WithPayload(payload *models.Error) *FindTodosDefault
WithPayload adds the payload to the find todos default response
func (*FindTodosDefault) WithStatusCode ¶
func (o *FindTodosDefault) WithStatusCode(code int) *FindTodosDefault
WithStatusCode adds the status to the find todos default response
func (*FindTodosDefault) WriteResponse ¶
func (o *FindTodosDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FindTodosHandler ¶
type FindTodosHandler interface {
Handle(FindTodosParams) middleware.Responder
}
FindTodosHandler interface for that can handle valid find todos params
type FindTodosHandlerFunc ¶
type FindTodosHandlerFunc func(FindTodosParams) middleware.Responder
FindTodosHandlerFunc turns a function with the right signature into a find todos handler
func (FindTodosHandlerFunc) Handle ¶
func (fn FindTodosHandlerFunc) Handle(params FindTodosParams) middleware.Responder
Handle executing the request and returning a response
type FindTodosOK ¶
FindTodosOK list the todo operations
swagger:response findTodosOK
func NewFindTodosOK ¶
func NewFindTodosOK() *FindTodosOK
NewFindTodosOK creates FindTodosOK with default headers values
func (*FindTodosOK) SetPayload ¶
func (o *FindTodosOK) SetPayload(payload []*models.Item)
SetPayload sets the payload to the find todos o k response
func (*FindTodosOK) WithPayload ¶
func (o *FindTodosOK) WithPayload(payload []*models.Item) *FindTodosOK
WithPayload adds the payload to the find todos o k response
func (*FindTodosOK) WriteResponse ¶
func (o *FindTodosOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FindTodosParams ¶
type FindTodosParams struct { // HTTP Request Object HTTPRequest *http.Request /* In: query Default: 20 */ Limit *int32 /* In: query */ Since *int64 }
FindTodosParams contains all the bound params for the find todos operation typically these are obtained from a http.Request
swagger:parameters findTodos
func NewFindTodosParams ¶
func NewFindTodosParams() FindTodosParams
NewFindTodosParams creates a new FindTodosParams object with the default values initialized.
func (*FindTodosParams) BindRequest ¶
func (o *FindTodosParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type UpdateOne ¶
type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler }
UpdateOne swagger:route PUT /{id} todos updateOne
UpdateOne update one API
func NewUpdateOne ¶
func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne
NewUpdateOne creates a new http.Handler for the update one operation
type UpdateOneDefault ¶
type UpdateOneDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateOneDefault error
swagger:response updateOneDefault
func NewUpdateOneDefault ¶
func NewUpdateOneDefault(code int) *UpdateOneDefault
NewUpdateOneDefault creates UpdateOneDefault with default headers values
func (*UpdateOneDefault) SetPayload ¶
func (o *UpdateOneDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the update one default response
func (*UpdateOneDefault) SetStatusCode ¶
func (o *UpdateOneDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update one default response
func (*UpdateOneDefault) WithPayload ¶
func (o *UpdateOneDefault) WithPayload(payload *models.Error) *UpdateOneDefault
WithPayload adds the payload to the update one default response
func (*UpdateOneDefault) WithStatusCode ¶
func (o *UpdateOneDefault) WithStatusCode(code int) *UpdateOneDefault
WithStatusCode adds the status to the update one default response
func (*UpdateOneDefault) WriteResponse ¶
func (o *UpdateOneDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateOneHandler ¶
type UpdateOneHandler interface {
Handle(UpdateOneParams) middleware.Responder
}
UpdateOneHandler interface for that can handle valid update one params
type UpdateOneHandlerFunc ¶
type UpdateOneHandlerFunc func(UpdateOneParams) middleware.Responder
UpdateOneHandlerFunc turns a function with the right signature into a update one handler
func (UpdateOneHandlerFunc) Handle ¶
func (fn UpdateOneHandlerFunc) Handle(params UpdateOneParams) middleware.Responder
Handle executing the request and returning a response
type UpdateOneOK ¶
UpdateOneOK OK
swagger:response updateOneOK
func NewUpdateOneOK ¶
func NewUpdateOneOK() *UpdateOneOK
NewUpdateOneOK creates UpdateOneOK with default headers values
func (*UpdateOneOK) SetPayload ¶
func (o *UpdateOneOK) SetPayload(payload *models.Item)
SetPayload sets the payload to the update one o k response
func (*UpdateOneOK) WithPayload ¶
func (o *UpdateOneOK) WithPayload(payload *models.Item) *UpdateOneOK
WithPayload adds the payload to the update one o k response
func (*UpdateOneOK) WriteResponse ¶
func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateOneParams ¶
type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request /* In: body */ Body *models.Item /* Required: true In: path */ ID int64 }
UpdateOneParams contains all the bound params for the update one operation typically these are obtained from a http.Request
swagger:parameters updateOne
func NewUpdateOneParams ¶
func NewUpdateOneParams() UpdateOneParams
NewUpdateOneParams creates a new UpdateOneParams object with the default values initialized.
func (*UpdateOneParams) BindRequest ¶
func (o *UpdateOneParams) 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