package
0.21.2
Repository: https://github.com/michalq/go-swagger.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.
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.
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.
DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent.
FindTodosOKCode is the HTTP code returned for type FindTodosOK.
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.
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.
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.
DestroyOneHandler interface for that can handle valid destroy one params.
FindTodosHandler interface for that can handle valid find todos 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.
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.
UpdateOneHandlerFunc turns a function with the right signature into a update one handler.