Versions in this module Expand all Collapse all v0 v0.31.0 Apr 9, 2024 v0.30.0 Mar 28, 2022 Changes in this version + const AddOneCreatedCode + const DestroyOneNoContentCode + const FindTodosOKCode + const UpdateOneOKCode + type AddOne struct + Context *middleware.Context + Handler AddOneHandler + func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne + func (o *AddOne) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type AddOneCreated struct + Payload *models.Item + func NewAddOneCreated() *AddOneCreated + func (o *AddOneCreated) SetPayload(payload *models.Item) + func (o *AddOneCreated) WithPayload(payload *models.Item) *AddOneCreated + func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type AddOneDefault struct + Payload *models.Error + func NewAddOneDefault(code int) *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 interface + Handle func(AddOneParams, interface{}) middleware.Responder + type AddOneHandlerFunc func(AddOneParams, interface{}) middleware.Responder + func (fn AddOneHandlerFunc) Handle(params AddOneParams, principal interface{}) middleware.Responder + type AddOneParams struct + Body *models.Item + HTTPRequest *http.Request + func NewAddOneParams() AddOneParams + func (o *AddOneParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error + type AddOneURL struct + func (o *AddOneURL) Build() (*url.URL, error) + func (o *AddOneURL) BuildFull(scheme, host string) (*url.URL, error) + func (o *AddOneURL) Must(u *url.URL, err error) *url.URL + func (o *AddOneURL) SetBasePath(bp string) + func (o *AddOneURL) String() string + func (o *AddOneURL) StringFull(scheme, host string) string + func (o *AddOneURL) WithBasePath(bp string) *AddOneURL + type DestroyOne struct + Context *middleware.Context + Handler DestroyOneHandler + func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyOne + func (o *DestroyOne) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type DestroyOneDefault struct + Payload *models.Error + func NewDestroyOneDefault(code int) *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 interface + Handle func(DestroyOneParams, interface{}) middleware.Responder + type DestroyOneHandlerFunc func(DestroyOneParams, interface{}) middleware.Responder + func (fn DestroyOneHandlerFunc) Handle(params DestroyOneParams, principal interface{}) middleware.Responder + type DestroyOneNoContent struct + func NewDestroyOneNoContent() *DestroyOneNoContent + func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type DestroyOneParams struct + HTTPRequest *http.Request + ID int64 + func NewDestroyOneParams() DestroyOneParams + func (o *DestroyOneParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error + type DestroyOneURL struct + ID int64 + func (o *DestroyOneURL) Build() (*url.URL, error) + func (o *DestroyOneURL) BuildFull(scheme, host string) (*url.URL, error) + func (o *DestroyOneURL) Must(u *url.URL, err error) *url.URL + func (o *DestroyOneURL) SetBasePath(bp string) + func (o *DestroyOneURL) String() string + func (o *DestroyOneURL) StringFull(scheme, host string) string + func (o *DestroyOneURL) WithBasePath(bp string) *DestroyOneURL + type FindTodos struct + Context *middleware.Context + Handler FindTodosHandler + func NewFindTodos(ctx *middleware.Context, handler FindTodosHandler) *FindTodos + func (o *FindTodos) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type FindTodosDefault struct + Payload *models.Error + func NewFindTodosDefault(code int) *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 interface + Handle func(FindTodosParams, interface{}) middleware.Responder + type FindTodosHandlerFunc func(FindTodosParams, interface{}) middleware.Responder + func (fn FindTodosHandlerFunc) Handle(params FindTodosParams, principal interface{}) middleware.Responder + type FindTodosOK struct + Payload []*models.Item + func NewFindTodosOK() *FindTodosOK + func (o *FindTodosOK) SetPayload(payload []*models.Item) + func (o *FindTodosOK) WithPayload(payload []*models.Item) *FindTodosOK + func (o *FindTodosOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type FindTodosParams struct + HTTPRequest *http.Request + Limit *int32 + Since *int64 + func NewFindTodosParams() FindTodosParams + func (o *FindTodosParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error + type FindTodosURL struct + Limit *int32 + Since *int64 + func (o *FindTodosURL) Build() (*url.URL, error) + func (o *FindTodosURL) BuildFull(scheme, host string) (*url.URL, error) + func (o *FindTodosURL) Must(u *url.URL, err error) *url.URL + func (o *FindTodosURL) SetBasePath(bp string) + func (o *FindTodosURL) String() string + func (o *FindTodosURL) StringFull(scheme, host string) string + func (o *FindTodosURL) WithBasePath(bp string) *FindTodosURL + type UpdateOne struct + Context *middleware.Context + Handler UpdateOneHandler + func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne + func (o *UpdateOne) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type UpdateOneDefault struct + Payload *models.Error + func NewUpdateOneDefault(code int) *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 interface + Handle func(UpdateOneParams, interface{}) middleware.Responder + type UpdateOneHandlerFunc func(UpdateOneParams, interface{}) middleware.Responder + func (fn UpdateOneHandlerFunc) Handle(params UpdateOneParams, principal interface{}) middleware.Responder + type UpdateOneOK struct + Payload *models.Item + func NewUpdateOneOK() *UpdateOneOK + func (o *UpdateOneOK) SetPayload(payload *models.Item) + func (o *UpdateOneOK) WithPayload(payload *models.Item) *UpdateOneOK + func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) + type UpdateOneParams struct + Body *models.Item + HTTPRequest *http.Request + ID int64 + func NewUpdateOneParams() UpdateOneParams + func (o *UpdateOneParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error + type UpdateOneURL struct + ID int64 + func (o *UpdateOneURL) Build() (*url.URL, error) + func (o *UpdateOneURL) BuildFull(scheme, host string) (*url.URL, error) + func (o *UpdateOneURL) Must(u *url.URL, err error) *url.URL + func (o *UpdateOneURL) SetBasePath(bp string) + func (o *UpdateOneURL) String() string + func (o *UpdateOneURL) StringFull(scheme, host string) string + func (o *UpdateOneURL) WithBasePath(bp string) *UpdateOneURL