package
0.0.0-20191122011435-22f00f1cb517
Repository: https://github.com/bwangelme/swaggerdemo.git
Documentation: pkg.go.dev

# Functions

NewAddOne creates a new http.Handler for the add one operation.
NewAddOneCreated creates AddOneCreated with default headers values.
NewAddOneDefault creates AddOneDefault with default headers values.
NewAddOneParams creates a new AddOneParams object no default values defined in spec.
NewDeleteID creates a new http.Handler for the delete ID operation.
NewDeleteIDDefault creates DeleteIDDefault with default headers values.
NewDeleteIDNoContent creates DeleteIDNoContent with default headers values.
NewDeleteIDParams creates a new DeleteIDParams object no default values defined in spec.
NewDestroyOne creates a new http.Handler for the destroy one operation.
NewDestroyOneDefault creates DestroyOneDefault with default headers values.
NewDestroyOneNoContent creates DestroyOneNoContent with default headers values.
NewDestroyOneParams creates a new DestroyOneParams object no default values defined in spec.
NewFindTodos creates a new http.Handler for the find todos operation.
NewFindTodosDefault creates FindTodosDefault with default headers values.
NewFindTodosOK creates FindTodosOK with default headers values.
NewFindTodosParams creates a new FindTodosParams object with the default values initialized.
NewGet creates a new http.Handler for the get operation.
NewGetDefault creates GetDefault with default headers values.
NewGetOK creates GetOK with default headers values.
NewGetParams creates a new GetParams object with the default values initialized.
NewPost creates a new http.Handler for the post operation.
NewPostCreated creates PostCreated with default headers values.
NewPostDefault creates PostDefault with default headers values.
NewPostParams creates a new PostParams object no default values defined in spec.
NewPutID creates a new http.Handler for the put ID operation.
NewPutIDDefault creates PutIDDefault with default headers values.
NewPutIDOK creates PutIDOK with default headers values.
NewPutIDParams creates a new PutIDParams object no default values defined in spec.
NewUpdateOne creates a new http.Handler for the update one operation.
NewUpdateOneDefault creates UpdateOneDefault with default headers values.
NewUpdateOneOK creates UpdateOneOK with default headers values.
NewUpdateOneParams creates a new UpdateOneParams object no default values defined in spec.

# Constants

AddOneCreatedCode is the HTTP code returned for type AddOneCreated.
DeleteIDNoContentCode is the HTTP code returned for type DeleteIDNoContent.
DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent.
FindTodosOKCode is the HTTP code returned for type FindTodosOK.
GetOKCode is the HTTP code returned for type GetOK.
PostCreatedCode is the HTTP code returned for type PostCreated.
PutIDOKCode is the HTTP code returned for type PutIDOK.
UpdateOneOKCode is the HTTP code returned for type UpdateOneOK.

# Structs

AddOne swagger:route POST / todos addOne AddOne add one API */.
AddOneCreated Created swagger:response addOneCreated */.
AddOneDefault error swagger:response addOneDefault */.
AddOneParams contains all the bound params for the add one operation typically these are obtained from a http.Request swagger:parameters addOne.
AddOneURL generates an URL for the add one operation.
DeleteID swagger:route DELETE /{id} todos deleteId DeleteID delete ID API */.
DeleteIDDefault error swagger:response deleteIdDefault */.
DeleteIDNoContent Deleted swagger:response deleteIdNoContent */.
DeleteIDParams contains all the bound params for the delete ID operation typically these are obtained from a http.Request swagger:parameters DeleteID.
DeleteIDURL generates an URL for the delete ID operation.
DestroyOne swagger:route DELETE /{id} todos destroyOne DestroyOne destroy one API */.
DestroyOneDefault error swagger:response destroyOneDefault */.
DestroyOneNoContent Deleted swagger:response destroyOneNoContent */.
DestroyOneParams contains all the bound params for the destroy one operation typically these are obtained from a http.Request swagger:parameters destroyOne.
DestroyOneURL generates an URL for the destroy one operation.
FindTodos swagger:route GET / todos findTodos FindTodos find todos API */.
FindTodosDefault generic error response swagger:response findTodosDefault */.
FindTodosOK list the todo operations swagger:response findTodosOK */.
FindTodosParams contains all the bound params for the find todos operation typically these are obtained from a http.Request swagger:parameters findTodos.
FindTodosURL generates an URL for the find todos operation.
Get swagger:route GET / todos get Get get API */.
GetDefault generic error response swagger:response getDefault */.
GetOK list the todo operations swagger:response getOK */.
GetParams contains all the bound params for the get operation typically these are obtained from a http.Request swagger:parameters Get.
GetURL generates an URL for the get operation.
Post
Post swagger:route POST / todos post Post post API */.
PostCreated Created swagger:response postCreated */.
PostDefault error swagger:response postDefault */.
PostParams contains all the bound params for the post operation typically these are obtained from a http.Request swagger:parameters Post.
PostURL generates an URL for the post operation.
PutID swagger:route PUT /{id} todos putId PutID put ID API */.
PutIDDefault error swagger:response putIdDefault */.
PutIDOK ok swagger:response putIdOK */.
PutIDParams contains all the bound params for the put ID operation typically these are obtained from a http.Request swagger:parameters PutID.
PutIDURL generates an URL for the put ID operation.
UpdateOne swagger:route PUT /{id} todos updateOne UpdateOne update one API */.
UpdateOneDefault error swagger:response updateOneDefault */.
UpdateOneOK ok swagger:response updateOneOK */.
UpdateOneParams contains all the bound params for the update one operation typically these are obtained from a http.Request swagger:parameters updateOne.
UpdateOneURL generates an URL for the update one operation.

# Interfaces

AddOneHandler interface for that can handle valid add one params.
DeleteIDHandler interface for that can handle valid delete ID params.
DestroyOneHandler interface for that can handle valid destroy one params.
FindTodosHandler interface for that can handle valid find todos params.
GetHandler interface for that can handle valid get params.
PostHandler interface for that can handle valid post params.
PutIDHandler interface for that can handle valid put ID params.
UpdateOneHandler interface for that can handle valid update one params.

# Type aliases

AddOneHandlerFunc turns a function with the right signature into a add one handler.
DeleteIDHandlerFunc turns a function with the right signature into a delete ID handler.
DestroyOneHandlerFunc turns a function with the right signature into a destroy one handler.
FindTodosHandlerFunc turns a function with the right signature into a find todos handler.
GetHandlerFunc turns a function with the right signature into a get handler.
PostHandlerFunc turns a function with the right signature into a post handler.
PutIDHandlerFunc turns a function with the right signature into a put ID handler.
UpdateOneHandlerFunc turns a function with the right signature into a update one handler.