Documentation ¶
Index ¶
- Constants
- type CreateUser
- type CreateUserBadRequest
- type CreateUserCreated
- type CreateUserHandler
- type CreateUserHandlerFunc
- type CreateUserParams
- type CreateUserURL
- func (o *CreateUserURL) Build() (*url.URL, error)
- func (o *CreateUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateUserURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateUserURL) SetBasePath(bp string)
- func (o *CreateUserURL) String() string
- func (o *CreateUserURL) StringFull(scheme, host string) string
- func (o *CreateUserURL) WithBasePath(bp string) *CreateUserURL
- type DeleteUser
- type DeleteUserBadRequest
- type DeleteUserHandler
- type DeleteUserHandlerFunc
- type DeleteUserNotFound
- type DeleteUserOK
- type DeleteUserParams
- type DeleteUserURL
- func (o *DeleteUserURL) Build() (*url.URL, error)
- func (o *DeleteUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteUserURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteUserURL) SetBasePath(bp string)
- func (o *DeleteUserURL) String() string
- func (o *DeleteUserURL) StringFull(scheme, host string) string
- func (o *DeleteUserURL) WithBasePath(bp string) *DeleteUserURL
- type DeleteUsers
- type DeleteUsersHandler
- type DeleteUsersHandlerFunc
- type DeleteUsersNotFound
- type DeleteUsersOK
- type DeleteUsersParams
- type DeleteUsersURL
- func (o *DeleteUsersURL) Build() (*url.URL, error)
- func (o *DeleteUsersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteUsersURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteUsersURL) SetBasePath(bp string)
- func (o *DeleteUsersURL) String() string
- func (o *DeleteUsersURL) StringFull(scheme, host string) string
- func (o *DeleteUsersURL) WithBasePath(bp string) *DeleteUsersURL
- type GetUser
- type GetUserBadRequest
- type GetUserHandler
- type GetUserHandlerFunc
- type GetUserNotFound
- type GetUserOK
- type GetUserParams
- type GetUserURL
- func (o *GetUserURL) Build() (*url.URL, error)
- func (o *GetUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUserURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUserURL) SetBasePath(bp string)
- func (o *GetUserURL) String() string
- func (o *GetUserURL) StringFull(scheme, host string) string
- func (o *GetUserURL) WithBasePath(bp string) *GetUserURL
- type GetUsers
- type GetUsersHandler
- type GetUsersHandlerFunc
- type GetUsersNotFound
- type GetUsersOK
- type GetUsersParams
- type GetUsersURL
- func (o *GetUsersURL) Build() (*url.URL, error)
- func (o *GetUsersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUsersURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUsersURL) SetBasePath(bp string)
- func (o *GetUsersURL) String() string
- func (o *GetUsersURL) StringFull(scheme, host string) string
- func (o *GetUsersURL) WithBasePath(bp string) *GetUsersURL
- type UpdateUser
- type UpdateUserBadRequest
- type UpdateUserCreated
- type UpdateUserHandler
- type UpdateUserHandlerFunc
- type UpdateUserNotFound
- type UpdateUserParams
- type UpdateUserURL
- func (o *UpdateUserURL) Build() (*url.URL, error)
- func (o *UpdateUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateUserURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateUserURL) SetBasePath(bp string)
- func (o *UpdateUserURL) String() string
- func (o *UpdateUserURL) StringFull(scheme, host string) string
- func (o *UpdateUserURL) WithBasePath(bp string) *UpdateUserURL
Constants ¶
const CreateUserBadRequestCode int = 400
CreateUserBadRequestCode is the HTTP code returned for type CreateUserBadRequest
const CreateUserCreatedCode int = 201
CreateUserCreatedCode is the HTTP code returned for type CreateUserCreated
const DeleteUserBadRequestCode int = 400
DeleteUserBadRequestCode is the HTTP code returned for type DeleteUserBadRequest
const DeleteUserNotFoundCode int = 404
DeleteUserNotFoundCode is the HTTP code returned for type DeleteUserNotFound
const DeleteUserOKCode int = 200
DeleteUserOKCode is the HTTP code returned for type DeleteUserOK
const DeleteUsersNotFoundCode int = 404
DeleteUsersNotFoundCode is the HTTP code returned for type DeleteUsersNotFound
const DeleteUsersOKCode int = 200
DeleteUsersOKCode is the HTTP code returned for type DeleteUsersOK
const GetUserBadRequestCode int = 400
GetUserBadRequestCode is the HTTP code returned for type GetUserBadRequest
const GetUserNotFoundCode int = 404
GetUserNotFoundCode is the HTTP code returned for type GetUserNotFound
const GetUserOKCode int = 200
GetUserOKCode is the HTTP code returned for type GetUserOK
const GetUsersNotFoundCode int = 404
GetUsersNotFoundCode is the HTTP code returned for type GetUsersNotFound
const GetUsersOKCode int = 200
GetUsersOKCode is the HTTP code returned for type GetUsersOK
const UpdateUserBadRequestCode int = 400
UpdateUserBadRequestCode is the HTTP code returned for type UpdateUserBadRequest
const UpdateUserCreatedCode int = 201
UpdateUserCreatedCode is the HTTP code returned for type UpdateUserCreated
const UpdateUserNotFoundCode int = 404
UpdateUserNotFoundCode is the HTTP code returned for type UpdateUserNotFound
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUser ¶
type CreateUser struct { Context *middleware.Context Handler CreateUserHandler }
CreateUser swagger:route POST /users Users createUser
Create a User
func NewCreateUser ¶
func NewCreateUser(ctx *middleware.Context, handler CreateUserHandler) *CreateUser
NewCreateUser creates a new http.Handler for the create user operation
func (*CreateUser) ServeHTTP ¶
func (o *CreateUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateUserBadRequest ¶
type CreateUserBadRequest struct { }
CreateUserBadRequest Invalid input
swagger:response createUserBadRequest
func NewCreateUserBadRequest ¶
func NewCreateUserBadRequest() *CreateUserBadRequest
NewCreateUserBadRequest creates CreateUserBadRequest with default headers values
func (*CreateUserBadRequest) WriteResponse ¶
func (o *CreateUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUserCreated ¶
CreateUserCreated User Created
swagger:response createUserCreated
func NewCreateUserCreated ¶
func NewCreateUserCreated() *CreateUserCreated
NewCreateUserCreated creates CreateUserCreated with default headers values
func (*CreateUserCreated) SetPayload ¶
func (o *CreateUserCreated) SetPayload(payload *models.User)
SetPayload sets the payload to the create user created response
func (*CreateUserCreated) WithPayload ¶
func (o *CreateUserCreated) WithPayload(payload *models.User) *CreateUserCreated
WithPayload adds the payload to the create user created response
func (*CreateUserCreated) WriteResponse ¶
func (o *CreateUserCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUserHandler ¶
type CreateUserHandler interface {
Handle(CreateUserParams) middleware.Responder
}
CreateUserHandler interface for that can handle valid create user params
type CreateUserHandlerFunc ¶
type CreateUserHandlerFunc func(CreateUserParams) middleware.Responder
CreateUserHandlerFunc turns a function with the right signature into a create user handler
func (CreateUserHandlerFunc) Handle ¶
func (fn CreateUserHandlerFunc) Handle(params CreateUserParams) middleware.Responder
Handle executing the request and returning a response
type CreateUserParams ¶
type CreateUserParams struct { // HTTP Request Object HTTPRequest *http.Request /*User that needs to be created Required: true In: body */ Body *models.User }
CreateUserParams contains all the bound params for the create user operation typically these are obtained from a http.Request
swagger:parameters createUser
func NewCreateUserParams ¶
func NewCreateUserParams() CreateUserParams
NewCreateUserParams creates a new CreateUserParams object with the default values initialized.
func (*CreateUserParams) BindRequest ¶
func (o *CreateUserParams) 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 CreateUserURL ¶
type CreateUserURL struct {
// contains filtered or unexported fields
}
CreateUserURL generates an URL for the create user operation
func (*CreateUserURL) Build ¶
func (o *CreateUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateUserURL) BuildFull ¶
func (o *CreateUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateUserURL) SetBasePath ¶
func (o *CreateUserURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*CreateUserURL) String ¶
func (o *CreateUserURL) String() string
String returns the string representation of the path with query string
func (*CreateUserURL) StringFull ¶
func (o *CreateUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateUserURL) WithBasePath ¶
func (o *CreateUserURL) WithBasePath(bp string) *CreateUserURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteUser ¶
type DeleteUser struct { Context *middleware.Context Handler DeleteUserHandler }
DeleteUser swagger:route DELETE /users/{id} Users deleteUser
Delete User
func NewDeleteUser ¶
func NewDeleteUser(ctx *middleware.Context, handler DeleteUserHandler) *DeleteUser
NewDeleteUser creates a new http.Handler for the delete user operation
func (*DeleteUser) ServeHTTP ¶
func (o *DeleteUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteUserBadRequest ¶
type DeleteUserBadRequest struct { }
DeleteUserBadRequest Invalid input
swagger:response deleteUserBadRequest
func NewDeleteUserBadRequest ¶
func NewDeleteUserBadRequest() *DeleteUserBadRequest
NewDeleteUserBadRequest creates DeleteUserBadRequest with default headers values
func (*DeleteUserBadRequest) WriteResponse ¶
func (o *DeleteUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserHandler ¶
type DeleteUserHandler interface {
Handle(DeleteUserParams) middleware.Responder
}
DeleteUserHandler interface for that can handle valid delete user params
type DeleteUserHandlerFunc ¶
type DeleteUserHandlerFunc func(DeleteUserParams) middleware.Responder
DeleteUserHandlerFunc turns a function with the right signature into a delete user handler
func (DeleteUserHandlerFunc) Handle ¶
func (fn DeleteUserHandlerFunc) Handle(params DeleteUserParams) middleware.Responder
Handle executing the request and returning a response
type DeleteUserNotFound ¶
type DeleteUserNotFound struct { }
DeleteUserNotFound No items found
swagger:response deleteUserNotFound
func NewDeleteUserNotFound ¶
func NewDeleteUserNotFound() *DeleteUserNotFound
NewDeleteUserNotFound creates DeleteUserNotFound with default headers values
func (*DeleteUserNotFound) WriteResponse ¶
func (o *DeleteUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserOK ¶
type DeleteUserOK struct { }
DeleteUserOK Status Ok
swagger:response deleteUserOK
func NewDeleteUserOK ¶
func NewDeleteUserOK() *DeleteUserOK
NewDeleteUserOK creates DeleteUserOK with default headers values
func (*DeleteUserOK) WriteResponse ¶
func (o *DeleteUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserParams ¶
type DeleteUserParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: path */ ID int64 }
DeleteUserParams contains all the bound params for the delete user operation typically these are obtained from a http.Request
swagger:parameters deleteUser
func NewDeleteUserParams ¶
func NewDeleteUserParams() DeleteUserParams
NewDeleteUserParams creates a new DeleteUserParams object with the default values initialized.
func (*DeleteUserParams) BindRequest ¶
func (o *DeleteUserParams) 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 DeleteUserURL ¶
type DeleteUserURL struct { ID int64 // contains filtered or unexported fields }
DeleteUserURL generates an URL for the delete user operation
func (*DeleteUserURL) Build ¶
func (o *DeleteUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteUserURL) BuildFull ¶
func (o *DeleteUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteUserURL) SetBasePath ¶
func (o *DeleteUserURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteUserURL) String ¶
func (o *DeleteUserURL) String() string
String returns the string representation of the path with query string
func (*DeleteUserURL) StringFull ¶
func (o *DeleteUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteUserURL) WithBasePath ¶
func (o *DeleteUserURL) WithBasePath(bp string) *DeleteUserURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteUsers ¶
type DeleteUsers struct { Context *middleware.Context Handler DeleteUsersHandler }
DeleteUsers swagger:route DELETE /users Users deleteUsers
Delete all Users
func NewDeleteUsers ¶
func NewDeleteUsers(ctx *middleware.Context, handler DeleteUsersHandler) *DeleteUsers
NewDeleteUsers creates a new http.Handler for the delete users operation
func (*DeleteUsers) ServeHTTP ¶
func (o *DeleteUsers) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteUsersHandler ¶
type DeleteUsersHandler interface {
Handle(DeleteUsersParams) middleware.Responder
}
DeleteUsersHandler interface for that can handle valid delete users params
type DeleteUsersHandlerFunc ¶
type DeleteUsersHandlerFunc func(DeleteUsersParams) middleware.Responder
DeleteUsersHandlerFunc turns a function with the right signature into a delete users handler
func (DeleteUsersHandlerFunc) Handle ¶
func (fn DeleteUsersHandlerFunc) Handle(params DeleteUsersParams) middleware.Responder
Handle executing the request and returning a response
type DeleteUsersNotFound ¶
type DeleteUsersNotFound struct { }
DeleteUsersNotFound No items found
swagger:response deleteUsersNotFound
func NewDeleteUsersNotFound ¶
func NewDeleteUsersNotFound() *DeleteUsersNotFound
NewDeleteUsersNotFound creates DeleteUsersNotFound with default headers values
func (*DeleteUsersNotFound) WriteResponse ¶
func (o *DeleteUsersNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUsersOK ¶
type DeleteUsersOK struct { }
DeleteUsersOK Status Ok
swagger:response deleteUsersOK
func NewDeleteUsersOK ¶
func NewDeleteUsersOK() *DeleteUsersOK
NewDeleteUsersOK creates DeleteUsersOK with default headers values
func (*DeleteUsersOK) WriteResponse ¶
func (o *DeleteUsersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUsersParams ¶
DeleteUsersParams contains all the bound params for the delete users operation typically these are obtained from a http.Request
swagger:parameters deleteUsers
func NewDeleteUsersParams ¶
func NewDeleteUsersParams() DeleteUsersParams
NewDeleteUsersParams creates a new DeleteUsersParams object with the default values initialized.
func (*DeleteUsersParams) BindRequest ¶
func (o *DeleteUsersParams) 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 DeleteUsersURL ¶
type DeleteUsersURL struct {
// contains filtered or unexported fields
}
DeleteUsersURL generates an URL for the delete users operation
func (*DeleteUsersURL) Build ¶
func (o *DeleteUsersURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteUsersURL) BuildFull ¶
func (o *DeleteUsersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteUsersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteUsersURL) SetBasePath ¶
func (o *DeleteUsersURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteUsersURL) String ¶
func (o *DeleteUsersURL) String() string
String returns the string representation of the path with query string
func (*DeleteUsersURL) StringFull ¶
func (o *DeleteUsersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteUsersURL) WithBasePath ¶
func (o *DeleteUsersURL) WithBasePath(bp string) *DeleteUsersURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetUser ¶
type GetUser struct { Context *middleware.Context Handler GetUserHandler }
GetUser swagger:route GET /users/{id} Users getUser
Get a specific User
func NewGetUser ¶
func NewGetUser(ctx *middleware.Context, handler GetUserHandler) *GetUser
NewGetUser creates a new http.Handler for the get user operation
type GetUserBadRequest ¶
type GetUserBadRequest struct { }
GetUserBadRequest Invalid input
swagger:response getUserBadRequest
func NewGetUserBadRequest ¶
func NewGetUserBadRequest() *GetUserBadRequest
NewGetUserBadRequest creates GetUserBadRequest with default headers values
func (*GetUserBadRequest) WriteResponse ¶
func (o *GetUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserHandler ¶
type GetUserHandler interface {
Handle(GetUserParams) middleware.Responder
}
GetUserHandler interface for that can handle valid get user params
type GetUserHandlerFunc ¶
type GetUserHandlerFunc func(GetUserParams) middleware.Responder
GetUserHandlerFunc turns a function with the right signature into a get user handler
func (GetUserHandlerFunc) Handle ¶
func (fn GetUserHandlerFunc) Handle(params GetUserParams) middleware.Responder
Handle executing the request and returning a response
type GetUserNotFound ¶
type GetUserNotFound struct { }
GetUserNotFound No items found
swagger:response getUserNotFound
func NewGetUserNotFound ¶
func NewGetUserNotFound() *GetUserNotFound
NewGetUserNotFound creates GetUserNotFound with default headers values
func (*GetUserNotFound) WriteResponse ¶
func (o *GetUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserOK ¶
GetUserOK Status Ok
swagger:response getUserOK
func NewGetUserOK ¶
func NewGetUserOK() *GetUserOK
NewGetUserOK creates GetUserOK with default headers values
func (*GetUserOK) SetPayload ¶
SetPayload sets the payload to the get user o k response
func (*GetUserOK) WithPayload ¶
WithPayload adds the payload to the get user o k response
func (*GetUserOK) WriteResponse ¶
func (o *GetUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserParams ¶
type GetUserParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: path */ ID int64 }
GetUserParams contains all the bound params for the get user operation typically these are obtained from a http.Request
swagger:parameters getUser
func NewGetUserParams ¶
func NewGetUserParams() GetUserParams
NewGetUserParams creates a new GetUserParams object with the default values initialized.
func (*GetUserParams) BindRequest ¶
func (o *GetUserParams) 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 GetUserURL ¶
type GetUserURL struct { ID int64 // contains filtered or unexported fields }
GetUserURL generates an URL for the get user operation
func (*GetUserURL) Build ¶
func (o *GetUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUserURL) BuildFull ¶
func (o *GetUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUserURL) SetBasePath ¶
func (o *GetUserURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetUserURL) String ¶
func (o *GetUserURL) String() string
String returns the string representation of the path with query string
func (*GetUserURL) StringFull ¶
func (o *GetUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUserURL) WithBasePath ¶
func (o *GetUserURL) WithBasePath(bp string) *GetUserURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetUsers ¶
type GetUsers struct { Context *middleware.Context Handler GetUsersHandler }
GetUsers swagger:route GET /users Users getUsers
Get all users
func NewGetUsers ¶
func NewGetUsers(ctx *middleware.Context, handler GetUsersHandler) *GetUsers
NewGetUsers creates a new http.Handler for the get users operation
type GetUsersHandler ¶
type GetUsersHandler interface {
Handle(GetUsersParams) middleware.Responder
}
GetUsersHandler interface for that can handle valid get users params
type GetUsersHandlerFunc ¶
type GetUsersHandlerFunc func(GetUsersParams) middleware.Responder
GetUsersHandlerFunc turns a function with the right signature into a get users handler
func (GetUsersHandlerFunc) Handle ¶
func (fn GetUsersHandlerFunc) Handle(params GetUsersParams) middleware.Responder
Handle executing the request and returning a response
type GetUsersNotFound ¶
type GetUsersNotFound struct { }
GetUsersNotFound No items found
swagger:response getUsersNotFound
func NewGetUsersNotFound ¶
func NewGetUsersNotFound() *GetUsersNotFound
NewGetUsersNotFound creates GetUsersNotFound with default headers values
func (*GetUsersNotFound) WriteResponse ¶
func (o *GetUsersNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersOK ¶
GetUsersOK Status Ok
swagger:response getUsersOK
func NewGetUsersOK ¶
func NewGetUsersOK() *GetUsersOK
NewGetUsersOK creates GetUsersOK with default headers values
func (*GetUsersOK) SetPayload ¶
func (o *GetUsersOK) SetPayload(payload models.Users)
SetPayload sets the payload to the get users o k response
func (*GetUsersOK) WithPayload ¶
func (o *GetUsersOK) WithPayload(payload models.Users) *GetUsersOK
WithPayload adds the payload to the get users o k response
func (*GetUsersOK) WriteResponse ¶
func (o *GetUsersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersParams ¶
GetUsersParams contains all the bound params for the get users operation typically these are obtained from a http.Request
swagger:parameters getUsers
func NewGetUsersParams ¶
func NewGetUsersParams() GetUsersParams
NewGetUsersParams creates a new GetUsersParams object with the default values initialized.
func (*GetUsersParams) BindRequest ¶
func (o *GetUsersParams) 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 GetUsersURL ¶
type GetUsersURL struct {
// contains filtered or unexported fields
}
GetUsersURL generates an URL for the get users operation
func (*GetUsersURL) Build ¶
func (o *GetUsersURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUsersURL) BuildFull ¶
func (o *GetUsersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUsersURL) SetBasePath ¶
func (o *GetUsersURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetUsersURL) String ¶
func (o *GetUsersURL) String() string
String returns the string representation of the path with query string
func (*GetUsersURL) StringFull ¶
func (o *GetUsersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUsersURL) WithBasePath ¶
func (o *GetUsersURL) WithBasePath(bp string) *GetUsersURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type UpdateUser ¶
type UpdateUser struct { Context *middleware.Context Handler UpdateUserHandler }
UpdateUser swagger:route PUT /users/{id} Users updateUser
Update a specific User
func NewUpdateUser ¶
func NewUpdateUser(ctx *middleware.Context, handler UpdateUserHandler) *UpdateUser
NewUpdateUser creates a new http.Handler for the update user operation
func (*UpdateUser) ServeHTTP ¶
func (o *UpdateUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateUserBadRequest ¶
type UpdateUserBadRequest struct { }
UpdateUserBadRequest Invalid input
swagger:response updateUserBadRequest
func NewUpdateUserBadRequest ¶
func NewUpdateUserBadRequest() *UpdateUserBadRequest
NewUpdateUserBadRequest creates UpdateUserBadRequest with default headers values
func (*UpdateUserBadRequest) WriteResponse ¶
func (o *UpdateUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserCreated ¶
UpdateUserCreated User Created
swagger:response updateUserCreated
func NewUpdateUserCreated ¶
func NewUpdateUserCreated() *UpdateUserCreated
NewUpdateUserCreated creates UpdateUserCreated with default headers values
func (*UpdateUserCreated) SetPayload ¶
func (o *UpdateUserCreated) SetPayload(payload *models.User)
SetPayload sets the payload to the update user created response
func (*UpdateUserCreated) WithPayload ¶
func (o *UpdateUserCreated) WithPayload(payload *models.User) *UpdateUserCreated
WithPayload adds the payload to the update user created response
func (*UpdateUserCreated) WriteResponse ¶
func (o *UpdateUserCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserHandler ¶
type UpdateUserHandler interface {
Handle(UpdateUserParams) middleware.Responder
}
UpdateUserHandler interface for that can handle valid update user params
type UpdateUserHandlerFunc ¶
type UpdateUserHandlerFunc func(UpdateUserParams) middleware.Responder
UpdateUserHandlerFunc turns a function with the right signature into a update user handler
func (UpdateUserHandlerFunc) Handle ¶
func (fn UpdateUserHandlerFunc) Handle(params UpdateUserParams) middleware.Responder
Handle executing the request and returning a response
type UpdateUserNotFound ¶
type UpdateUserNotFound struct { }
UpdateUserNotFound No items found
swagger:response updateUserNotFound
func NewUpdateUserNotFound ¶
func NewUpdateUserNotFound() *UpdateUserNotFound
NewUpdateUserNotFound creates UpdateUserNotFound with default headers values
func (*UpdateUserNotFound) WriteResponse ¶
func (o *UpdateUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserParams ¶
type UpdateUserParams struct { // HTTP Request Object HTTPRequest *http.Request /*a user that needs to be updated Required: true In: body */ Body *models.User /* Required: true In: path */ ID int64 }
UpdateUserParams contains all the bound params for the update user operation typically these are obtained from a http.Request
swagger:parameters updateUser
func NewUpdateUserParams ¶
func NewUpdateUserParams() UpdateUserParams
NewUpdateUserParams creates a new UpdateUserParams object with the default values initialized.
func (*UpdateUserParams) BindRequest ¶
func (o *UpdateUserParams) 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 UpdateUserURL ¶
type UpdateUserURL struct { ID int64 // contains filtered or unexported fields }
UpdateUserURL generates an URL for the update user operation
func (*UpdateUserURL) Build ¶
func (o *UpdateUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateUserURL) BuildFull ¶
func (o *UpdateUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateUserURL) SetBasePath ¶
func (o *UpdateUserURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*UpdateUserURL) String ¶
func (o *UpdateUserURL) String() string
String returns the string representation of the path with query string
func (*UpdateUserURL) StringFull ¶
func (o *UpdateUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateUserURL) WithBasePath ¶
func (o *UpdateUserURL) WithBasePath(bp string) *UpdateUserURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- create_user.go
- create_user_parameters.go
- create_user_responses.go
- create_user_urlbuilder.go
- delete_user.go
- delete_user_parameters.go
- delete_user_responses.go
- delete_user_urlbuilder.go
- delete_users.go
- delete_users_parameters.go
- delete_users_responses.go
- delete_users_urlbuilder.go
- get_user.go
- get_user_parameters.go
- get_user_responses.go
- get_user_urlbuilder.go
- get_users.go
- get_users_parameters.go
- get_users_responses.go
- get_users_urlbuilder.go
- update_user.go
- update_user_parameters.go
- update_user_responses.go
- update_user_urlbuilder.go