todos

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2015 License: Apache-2.0 Imports: 9 Imported by: 156

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOne

type AddOne struct {
	Context *middleware.Context
	Params  AddOneParams
	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

func (*AddOne) ServeHTTP

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

type AddOneCreated

type AddOneCreated struct {

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

AddOneCreated Created

swagger:response addOneCreated

func (*AddOneCreated) WriteResponse

func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type AddOneDefault

type AddOneDefault struct {

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

AddOneDefault error

swagger:response addOneDefault

func (*AddOneDefault) WriteResponse

func (o *AddOneDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type AddOneHandler

type AddOneHandler interface {
	Handle(AddOneParams, interface{}) middleware.Responder
}

AddOneHandler interface for that can handle valid add one params

type AddOneHandlerFunc

type AddOneHandlerFunc func(AddOneParams, interface{}) middleware.Responder

AddOneHandlerFunc turns a function with the right signature into a add one handler

func (AddOneHandlerFunc) Handle

func (fn AddOneHandlerFunc) Handle(params AddOneParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddOneParams

type AddOneParams struct {
	/*
	  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 (*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
	Params  DestroyOneParams
	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"`
}

DestroyOneDefault error

swagger:response destroyOneDefault

func (*DestroyOneDefault) WriteResponse

func (o *DestroyOneDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type DestroyOneHandler

type DestroyOneHandler interface {
	Handle(DestroyOneParams, interface{}) middleware.Responder
}

DestroyOneHandler interface for that can handle valid destroy one params

type DestroyOneHandlerFunc

type DestroyOneHandlerFunc func(DestroyOneParams, interface{}) middleware.Responder

DestroyOneHandlerFunc turns a function with the right signature into a destroy one handler

func (DestroyOneHandlerFunc) Handle

func (fn DestroyOneHandlerFunc) Handle(params DestroyOneParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DestroyOneNoContent

type DestroyOneNoContent struct {
}

DestroyOneNoContent Deleted

swagger:response destroyOneNoContent

func (*DestroyOneNoContent) WriteResponse

func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type DestroyOneParams

type DestroyOneParams struct {
	/*
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters destroyOne

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 Find

type Find struct {
	Context *middleware.Context
	Params  FindParams
	Handler FindHandler
}

Find swagger:route GET / todos find

Find find API

func NewFind

func NewFind(ctx *middleware.Context, handler FindHandler) *Find

NewFind creates a new http.Handler for the find operation

func (*Find) ServeHTTP

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

type FindDefault

type FindDefault struct {

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

FindDefault error

swagger:response findDefault

func (*FindDefault) WriteResponse

func (o *FindDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type FindHandler

type FindHandler interface {
	Handle(FindParams, interface{}) middleware.Responder
}

FindHandler interface for that can handle valid find params

type FindHandlerFunc

type FindHandlerFunc func(FindParams, interface{}) middleware.Responder

FindHandlerFunc turns a function with the right signature into a find handler

func (FindHandlerFunc) Handle

func (fn FindHandlerFunc) Handle(params FindParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type FindOK

type FindOK struct {

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

FindOK OK

swagger:response findOK

func (*FindOK) WriteResponse

func (o *FindOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type FindParams

type FindParams struct {
	/*
	  Required: true
	  In: header
	*/
	XRateLimit int32
	/*
	  Required: true
	  In: formData
	*/
	Limit int32
	/*
	  Required: true
	  In: formData
	  Collection Format: multi
	*/
	Tags []int32
}

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

swagger:parameters find

func (*FindParams) BindRequest

func (o *FindParams) 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
	Params  UpdateOneParams
	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

func (*UpdateOne) ServeHTTP

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

type UpdateOneDefault

type UpdateOneDefault struct {

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

UpdateOneDefault error

swagger:response updateOneDefault

func (*UpdateOneDefault) WriteResponse

func (o *UpdateOneDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type UpdateOneHandler

type UpdateOneHandler interface {
	Handle(UpdateOneParams, interface{}) middleware.Responder
}

UpdateOneHandler interface for that can handle valid update one params

type UpdateOneHandlerFunc

type UpdateOneHandlerFunc func(UpdateOneParams, interface{}) middleware.Responder

UpdateOneHandlerFunc turns a function with the right signature into a update one handler

func (UpdateOneHandlerFunc) Handle

func (fn UpdateOneHandlerFunc) Handle(params UpdateOneParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateOneOK

type UpdateOneOK struct {

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

UpdateOneOK OK

swagger:response updateOneOK

func (*UpdateOneOK) WriteResponse

func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type UpdateOneParams

type UpdateOneParams struct {
	/*
	  In: body
	*/
	Body *models.Item
	/*
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters updateOne

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

Jump to

Keyboard shortcuts

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