Documentation ¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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