Documentation ¶
Index ¶
- type CreateUser
- type CreateUserBadRequest
- type CreateUserCreated
- type CreateUserDefault
- func (o *CreateUserDefault) SetPayload(payload *models.GenericError)
- func (o *CreateUserDefault) SetStatusCode(code int)
- func (o *CreateUserDefault) WithPayload(payload *models.GenericError) *CreateUserDefault
- func (o *CreateUserDefault) WithStatusCode(code int) *CreateUserDefault
- func (o *CreateUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateUserForbidden
- type CreateUserHandler
- type CreateUserHandlerFunc
- type CreateUserParams
- type CreateUserUnauthorized
- type DeleteUser
- type DeleteUserDefault
- func (o *DeleteUserDefault) SetPayload(payload *models.GenericError)
- func (o *DeleteUserDefault) SetStatusCode(code int)
- func (o *DeleteUserDefault) WithPayload(payload *models.GenericError) *DeleteUserDefault
- func (o *DeleteUserDefault) WithStatusCode(code int) *DeleteUserDefault
- func (o *DeleteUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteUserHandler
- type DeleteUserHandlerFunc
- type DeleteUserNoContent
- type DeleteUserParams
- type GetCurrentUser
- type GetCurrentUserDefault
- func (o *GetCurrentUserDefault) SetPayload(payload *models.GenericError)
- func (o *GetCurrentUserDefault) SetStatusCode(code int)
- func (o *GetCurrentUserDefault) WithPayload(payload *models.GenericError) *GetCurrentUserDefault
- func (o *GetCurrentUserDefault) WithStatusCode(code int) *GetCurrentUserDefault
- func (o *GetCurrentUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetCurrentUserHandler
- type GetCurrentUserHandlerFunc
- type GetCurrentUserNotFound
- type GetCurrentUserOK
- type GetCurrentUserParams
- type GetUserDetails
- type GetUserDetailsDefault
- func (o *GetUserDetailsDefault) SetPayload(payload *models.GenericError)
- func (o *GetUserDetailsDefault) SetStatusCode(code int)
- func (o *GetUserDetailsDefault) WithPayload(payload *models.GenericError) *GetUserDetailsDefault
- func (o *GetUserDetailsDefault) WithStatusCode(code int) *GetUserDetailsDefault
- func (o *GetUserDetailsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUserDetailsForbidden
- type GetUserDetailsHandler
- type GetUserDetailsHandlerFunc
- type GetUserDetailsNotFound
- type GetUserDetailsOK
- type GetUserDetailsParams
- type GetUserDetailsUnauthorized
- type GetUsers
- type GetUsersBadRequest
- type GetUsersDefault
- func (o *GetUsersDefault) SetPayload(payload *models.GenericError)
- func (o *GetUsersDefault) SetStatusCode(code int)
- func (o *GetUsersDefault) WithPayload(payload *models.GenericError) *GetUsersDefault
- func (o *GetUsersDefault) WithStatusCode(code int) *GetUsersDefault
- func (o *GetUsersDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUsersForbidden
- type GetUsersHandler
- type GetUsersHandlerFunc
- type GetUsersNotFound
- type GetUsersOK
- type GetUsersOKBodyBody
- type GetUsersParams
- type GetUsersUnauthorized
- type UpdateUser
- type UpdateUserDefault
- func (o *UpdateUserDefault) SetPayload(payload *models.GenericError)
- func (o *UpdateUserDefault) SetStatusCode(code int)
- func (o *UpdateUserDefault) WithPayload(payload *models.GenericError) *UpdateUserDefault
- func (o *UpdateUserDefault) WithStatusCode(code int) *UpdateUserDefault
- func (o *UpdateUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateUserForbidden
- type UpdateUserHandler
- type UpdateUserHandlerFunc
- type UpdateUserNotFound
- type UpdateUserOK
- type UpdateUserParams
- type UpdateUserUnauthorized
Constants ¶
This section is empty.
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 user ¶
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 { // In: body Payload *models.BadRequest `json:"body,omitempty"` }
CreateUserBadRequest User sent a bad request
swagger:response createUserBadRequest
func NewCreateUserBadRequest ¶
func NewCreateUserBadRequest() *CreateUserBadRequest
NewCreateUserBadRequest creates CreateUserBadRequest with default headers values
func (*CreateUserBadRequest) SetPayload ¶
func (o *CreateUserBadRequest) SetPayload(payload *models.BadRequest)
SetPayload sets the payload to the create user bad request response
func (*CreateUserBadRequest) WithPayload ¶
func (o *CreateUserBadRequest) WithPayload(payload *models.BadRequest) *CreateUserBadRequest
WithPayload adds the payload to the create user bad request response
func (*CreateUserBadRequest) WriteResponse ¶
func (o *CreateUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUserCreated ¶
CreateUserCreated Newly created user
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 CreateUserDefault ¶
type CreateUserDefault struct { // In: body Payload *models.GenericError `json:"body,omitempty"` // contains filtered or unexported fields }
CreateUserDefault Error
swagger:response createUserDefault
func NewCreateUserDefault ¶
func NewCreateUserDefault(code int) *CreateUserDefault
NewCreateUserDefault creates CreateUserDefault with default headers values
func (*CreateUserDefault) SetPayload ¶
func (o *CreateUserDefault) SetPayload(payload *models.GenericError)
SetPayload sets the payload to the create user default response
func (*CreateUserDefault) SetStatusCode ¶
func (o *CreateUserDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create user default response
func (*CreateUserDefault) WithPayload ¶
func (o *CreateUserDefault) WithPayload(payload *models.GenericError) *CreateUserDefault
WithPayload adds the payload to the create user default response
func (*CreateUserDefault) WithStatusCode ¶
func (o *CreateUserDefault) WithStatusCode(code int) *CreateUserDefault
WithStatusCode adds the status to the create user default response
func (*CreateUserDefault) WriteResponse ¶
func (o *CreateUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUserForbidden ¶
type CreateUserForbidden struct { // In: body Payload *models.Unauthorized `json:"body,omitempty"` }
CreateUserForbidden User does not have the credentials to access this resource
swagger:response createUserForbidden
func NewCreateUserForbidden ¶
func NewCreateUserForbidden() *CreateUserForbidden
NewCreateUserForbidden creates CreateUserForbidden with default headers values
func (*CreateUserForbidden) SetPayload ¶
func (o *CreateUserForbidden) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the create user forbidden response
func (*CreateUserForbidden) WithPayload ¶
func (o *CreateUserForbidden) WithPayload(payload *models.Unauthorized) *CreateUserForbidden
WithPayload adds the payload to the create user forbidden response
func (*CreateUserForbidden) WriteResponse ¶
func (o *CreateUserForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUserHandler ¶
type CreateUserHandler interface {
Handle(CreateUserParams, interface{}) middleware.Responder
}
CreateUserHandler interface for that can handle valid create user params
type CreateUserHandlerFunc ¶
type CreateUserHandlerFunc func(CreateUserParams, interface{}) middleware.Responder
CreateUserHandlerFunc turns a function with the right signature into a create user handler
func (CreateUserHandlerFunc) Handle ¶
func (fn CreateUserHandlerFunc) Handle(params CreateUserParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateUserParams ¶
type CreateUserParams struct { // HTTP Request Object HTTPRequest *http.Request /* 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 CreateUserUnauthorized ¶
type CreateUserUnauthorized struct { models.Unauthorized `json:"body,omitempty"` }Payload *
CreateUserUnauthorized User not authorized
swagger:response createUserUnauthorized
func NewCreateUserUnauthorized ¶
func NewCreateUserUnauthorized() *CreateUserUnauthorized
NewCreateUserUnauthorized creates CreateUserUnauthorized with default headers values
func (*CreateUserUnauthorized) SetPayload ¶
func (o *CreateUserUnauthorized) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the create user unauthorized response
func (*CreateUserUnauthorized) WithPayload ¶
func (o *CreateUserUnauthorized) WithPayload(payload *models.Unauthorized) *CreateUserUnauthorized
WithPayload adds the payload to the create user unauthorized response
func (*CreateUserUnauthorized) WriteResponse ¶
func (o *CreateUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUser ¶
type DeleteUser struct { Context *middleware.Context Handler DeleteUserHandler }
DeleteUser swagger:route DELETE /users/{user_id} users deleteUser
Delete user ¶
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 DeleteUserDefault ¶
type DeleteUserDefault struct { // In: body Payload *models.GenericError `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteUserDefault Error
swagger:response deleteUserDefault
func NewDeleteUserDefault ¶
func NewDeleteUserDefault(code int) *DeleteUserDefault
NewDeleteUserDefault creates DeleteUserDefault with default headers values
func (*DeleteUserDefault) SetPayload ¶
func (o *DeleteUserDefault) SetPayload(payload *models.GenericError)
SetPayload sets the payload to the delete user default response
func (*DeleteUserDefault) SetStatusCode ¶
func (o *DeleteUserDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete user default response
func (*DeleteUserDefault) WithPayload ¶
func (o *DeleteUserDefault) WithPayload(payload *models.GenericError) *DeleteUserDefault
WithPayload adds the payload to the delete user default response
func (*DeleteUserDefault) WithStatusCode ¶
func (o *DeleteUserDefault) WithStatusCode(code int) *DeleteUserDefault
WithStatusCode adds the status to the delete user default response
func (*DeleteUserDefault) WriteResponse ¶
func (o *DeleteUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserHandler ¶
type DeleteUserHandler interface {
Handle(DeleteUserParams, interface{}) middleware.Responder
}
DeleteUserHandler interface for that can handle valid delete user params
type DeleteUserHandlerFunc ¶
type DeleteUserHandlerFunc func(DeleteUserParams, interface{}) middleware.Responder
DeleteUserHandlerFunc turns a function with the right signature into a delete user handler
func (DeleteUserHandlerFunc) Handle ¶
func (fn DeleteUserHandlerFunc) Handle(params DeleteUserParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteUserNoContent ¶
type DeleteUserNoContent struct { }
DeleteUserNoContent No content
swagger:response deleteUserNoContent
func NewDeleteUserNoContent ¶
func NewDeleteUserNoContent() *DeleteUserNoContent
NewDeleteUserNoContent creates DeleteUserNoContent with default headers values
func (*DeleteUserNoContent) WriteResponse ¶
func (o *DeleteUserNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserParams ¶
type DeleteUserParams struct { // HTTP Request Object HTTPRequest *http.Request /*User ID Required: true In: path */ UserID 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 GetCurrentUser ¶
type GetCurrentUser struct { Context *middleware.Context Handler GetCurrentUserHandler }
GetCurrentUser swagger:route GET /users/me users getCurrentUser
Get logged user info ¶
Get info on user of current session, if any
func NewGetCurrentUser ¶
func NewGetCurrentUser(ctx *middleware.Context, handler GetCurrentUserHandler) *GetCurrentUser
NewGetCurrentUser creates a new http.Handler for the get current user operation
func (*GetCurrentUser) ServeHTTP ¶
func (o *GetCurrentUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetCurrentUserDefault ¶
type GetCurrentUserDefault struct { // In: body Payload *models.GenericError `json:"body,omitempty"` // contains filtered or unexported fields }
GetCurrentUserDefault Error
swagger:response getCurrentUserDefault
func NewGetCurrentUserDefault ¶
func NewGetCurrentUserDefault(code int) *GetCurrentUserDefault
NewGetCurrentUserDefault creates GetCurrentUserDefault with default headers values
func (*GetCurrentUserDefault) SetPayload ¶
func (o *GetCurrentUserDefault) SetPayload(payload *models.GenericError)
SetPayload sets the payload to the get current user default response
func (*GetCurrentUserDefault) SetStatusCode ¶
func (o *GetCurrentUserDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get current user default response
func (*GetCurrentUserDefault) WithPayload ¶
func (o *GetCurrentUserDefault) WithPayload(payload *models.GenericError) *GetCurrentUserDefault
WithPayload adds the payload to the get current user default response
func (*GetCurrentUserDefault) WithStatusCode ¶
func (o *GetCurrentUserDefault) WithStatusCode(code int) *GetCurrentUserDefault
WithStatusCode adds the status to the get current user default response
func (*GetCurrentUserDefault) WriteResponse ¶
func (o *GetCurrentUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCurrentUserHandler ¶
type GetCurrentUserHandler interface {
Handle(GetCurrentUserParams, interface{}) middleware.Responder
}
GetCurrentUserHandler interface for that can handle valid get current user params
type GetCurrentUserHandlerFunc ¶
type GetCurrentUserHandlerFunc func(GetCurrentUserParams, interface{}) middleware.Responder
GetCurrentUserHandlerFunc turns a function with the right signature into a get current user handler
func (GetCurrentUserHandlerFunc) Handle ¶
func (fn GetCurrentUserHandlerFunc) Handle(params GetCurrentUserParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetCurrentUserNotFound ¶
GetCurrentUserNotFound Resource not found
swagger:response getCurrentUserNotFound
func NewGetCurrentUserNotFound ¶
func NewGetCurrentUserNotFound() *GetCurrentUserNotFound
NewGetCurrentUserNotFound creates GetCurrentUserNotFound with default headers values
func (*GetCurrentUserNotFound) SetPayload ¶
func (o *GetCurrentUserNotFound) SetPayload(payload *models.NotFound)
SetPayload sets the payload to the get current user not found response
func (*GetCurrentUserNotFound) WithPayload ¶
func (o *GetCurrentUserNotFound) WithPayload(payload *models.NotFound) *GetCurrentUserNotFound
WithPayload adds the payload to the get current user not found response
func (*GetCurrentUserNotFound) WriteResponse ¶
func (o *GetCurrentUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCurrentUserOK ¶
GetCurrentUserOK User info
swagger:response getCurrentUserOK
func NewGetCurrentUserOK ¶
func NewGetCurrentUserOK() *GetCurrentUserOK
NewGetCurrentUserOK creates GetCurrentUserOK with default headers values
func (*GetCurrentUserOK) SetPayload ¶
func (o *GetCurrentUserOK) SetPayload(payload *models.User)
SetPayload sets the payload to the get current user o k response
func (*GetCurrentUserOK) WithPayload ¶
func (o *GetCurrentUserOK) WithPayload(payload *models.User) *GetCurrentUserOK
WithPayload adds the payload to the get current user o k response
func (*GetCurrentUserOK) WriteResponse ¶
func (o *GetCurrentUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCurrentUserParams ¶
GetCurrentUserParams contains all the bound params for the get current user operation typically these are obtained from a http.Request
swagger:parameters getCurrentUser
func NewGetCurrentUserParams ¶
func NewGetCurrentUserParams() GetCurrentUserParams
NewGetCurrentUserParams creates a new GetCurrentUserParams object with the default values initialized.
func (*GetCurrentUserParams) BindRequest ¶
func (o *GetCurrentUserParams) 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 GetUserDetails ¶
type GetUserDetails struct { Context *middleware.Context Handler GetUserDetailsHandler }
GetUserDetails swagger:route GET /users/{user_id} users getUserDetails
Get user details ¶
Get user details
func NewGetUserDetails ¶
func NewGetUserDetails(ctx *middleware.Context, handler GetUserDetailsHandler) *GetUserDetails
NewGetUserDetails creates a new http.Handler for the get user details operation
func (*GetUserDetails) ServeHTTP ¶
func (o *GetUserDetails) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUserDetailsDefault ¶
type GetUserDetailsDefault struct { // In: body Payload *models.GenericError `json:"body,omitempty"` // contains filtered or unexported fields }
GetUserDetailsDefault Error
swagger:response getUserDetailsDefault
func NewGetUserDetailsDefault ¶
func NewGetUserDetailsDefault(code int) *GetUserDetailsDefault
NewGetUserDetailsDefault creates GetUserDetailsDefault with default headers values
func (*GetUserDetailsDefault) SetPayload ¶
func (o *GetUserDetailsDefault) SetPayload(payload *models.GenericError)
SetPayload sets the payload to the get user details default response
func (*GetUserDetailsDefault) SetStatusCode ¶
func (o *GetUserDetailsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get user details default response
func (*GetUserDetailsDefault) WithPayload ¶
func (o *GetUserDetailsDefault) WithPayload(payload *models.GenericError) *GetUserDetailsDefault
WithPayload adds the payload to the get user details default response
func (*GetUserDetailsDefault) WithStatusCode ¶
func (o *GetUserDetailsDefault) WithStatusCode(code int) *GetUserDetailsDefault
WithStatusCode adds the status to the get user details default response
func (*GetUserDetailsDefault) WriteResponse ¶
func (o *GetUserDetailsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserDetailsForbidden ¶
type GetUserDetailsForbidden struct { // In: body Payload *models.Unauthorized `json:"body,omitempty"` }
GetUserDetailsForbidden User does not have the credentials to access this resource
swagger:response getUserDetailsForbidden
func NewGetUserDetailsForbidden ¶
func NewGetUserDetailsForbidden() *GetUserDetailsForbidden
NewGetUserDetailsForbidden creates GetUserDetailsForbidden with default headers values
func (*GetUserDetailsForbidden) SetPayload ¶
func (o *GetUserDetailsForbidden) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the get user details forbidden response
func (*GetUserDetailsForbidden) WithPayload ¶
func (o *GetUserDetailsForbidden) WithPayload(payload *models.Unauthorized) *GetUserDetailsForbidden
WithPayload adds the payload to the get user details forbidden response
func (*GetUserDetailsForbidden) WriteResponse ¶
func (o *GetUserDetailsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserDetailsHandler ¶
type GetUserDetailsHandler interface {
Handle(GetUserDetailsParams, interface{}) middleware.Responder
}
GetUserDetailsHandler interface for that can handle valid get user details params
type GetUserDetailsHandlerFunc ¶
type GetUserDetailsHandlerFunc func(GetUserDetailsParams, interface{}) middleware.Responder
GetUserDetailsHandlerFunc turns a function with the right signature into a get user details handler
func (GetUserDetailsHandlerFunc) Handle ¶
func (fn GetUserDetailsHandlerFunc) Handle(params GetUserDetailsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetUserDetailsNotFound ¶
GetUserDetailsNotFound Resource not found
swagger:response getUserDetailsNotFound
func NewGetUserDetailsNotFound ¶
func NewGetUserDetailsNotFound() *GetUserDetailsNotFound
NewGetUserDetailsNotFound creates GetUserDetailsNotFound with default headers values
func (*GetUserDetailsNotFound) SetPayload ¶
func (o *GetUserDetailsNotFound) SetPayload(payload *models.NotFound)
SetPayload sets the payload to the get user details not found response
func (*GetUserDetailsNotFound) WithPayload ¶
func (o *GetUserDetailsNotFound) WithPayload(payload *models.NotFound) *GetUserDetailsNotFound
WithPayload adds the payload to the get user details not found response
func (*GetUserDetailsNotFound) WriteResponse ¶
func (o *GetUserDetailsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserDetailsOK ¶
GetUserDetailsOK User details
swagger:response getUserDetailsOK
func NewGetUserDetailsOK ¶
func NewGetUserDetailsOK() *GetUserDetailsOK
NewGetUserDetailsOK creates GetUserDetailsOK with default headers values
func (*GetUserDetailsOK) SetPayload ¶
func (o *GetUserDetailsOK) SetPayload(payload *models.User)
SetPayload sets the payload to the get user details o k response
func (*GetUserDetailsOK) WithPayload ¶
func (o *GetUserDetailsOK) WithPayload(payload *models.User) *GetUserDetailsOK
WithPayload adds the payload to the get user details o k response
func (*GetUserDetailsOK) WriteResponse ¶
func (o *GetUserDetailsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserDetailsParams ¶
type GetUserDetailsParams struct { // HTTP Request Object HTTPRequest *http.Request /*Limit In: query Default: 20 */ Limit *int64 /*Offset In: query Default: 0 */ Since *int64 /*User ID Required: true In: path */ UserID int64 }
GetUserDetailsParams contains all the bound params for the get user details operation typically these are obtained from a http.Request
swagger:parameters getUserDetails
func NewGetUserDetailsParams ¶
func NewGetUserDetailsParams() GetUserDetailsParams
NewGetUserDetailsParams creates a new GetUserDetailsParams object with the default values initialized.
func (*GetUserDetailsParams) BindRequest ¶
func (o *GetUserDetailsParams) 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 GetUserDetailsUnauthorized ¶
type GetUserDetailsUnauthorized struct { models.Unauthorized `json:"body,omitempty"` }Payload *
GetUserDetailsUnauthorized User not authorized
swagger:response getUserDetailsUnauthorized
func NewGetUserDetailsUnauthorized ¶
func NewGetUserDetailsUnauthorized() *GetUserDetailsUnauthorized
NewGetUserDetailsUnauthorized creates GetUserDetailsUnauthorized with default headers values
func (*GetUserDetailsUnauthorized) SetPayload ¶
func (o *GetUserDetailsUnauthorized) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the get user details unauthorized response
func (*GetUserDetailsUnauthorized) WithPayload ¶
func (o *GetUserDetailsUnauthorized) WithPayload(payload *models.Unauthorized) *GetUserDetailsUnauthorized
WithPayload adds the payload to the get user details unauthorized response
func (*GetUserDetailsUnauthorized) WriteResponse ¶
func (o *GetUserDetailsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsers ¶
type GetUsers struct { Context *middleware.Context Handler GetUsersHandler }
GetUsers swagger:route GET /users users getUsers
Get users ¶
Find and filter users
func NewGetUsers ¶
func NewGetUsers(ctx *middleware.Context, handler GetUsersHandler) *GetUsers
NewGetUsers creates a new http.Handler for the get users operation
type GetUsersBadRequest ¶
type GetUsersBadRequest struct { // In: body Payload *models.BadRequest `json:"body,omitempty"` }
GetUsersBadRequest User sent a bad request
swagger:response getUsersBadRequest
func NewGetUsersBadRequest ¶
func NewGetUsersBadRequest() *GetUsersBadRequest
NewGetUsersBadRequest creates GetUsersBadRequest with default headers values
func (*GetUsersBadRequest) SetPayload ¶
func (o *GetUsersBadRequest) SetPayload(payload *models.BadRequest)
SetPayload sets the payload to the get users bad request response
func (*GetUsersBadRequest) WithPayload ¶
func (o *GetUsersBadRequest) WithPayload(payload *models.BadRequest) *GetUsersBadRequest
WithPayload adds the payload to the get users bad request response
func (*GetUsersBadRequest) WriteResponse ¶
func (o *GetUsersBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersDefault ¶
type GetUsersDefault struct { // In: body Payload *models.GenericError `json:"body,omitempty"` // contains filtered or unexported fields }
GetUsersDefault Error
swagger:response getUsersDefault
func NewGetUsersDefault ¶
func NewGetUsersDefault(code int) *GetUsersDefault
NewGetUsersDefault creates GetUsersDefault with default headers values
func (*GetUsersDefault) SetPayload ¶
func (o *GetUsersDefault) SetPayload(payload *models.GenericError)
SetPayload sets the payload to the get users default response
func (*GetUsersDefault) SetStatusCode ¶
func (o *GetUsersDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get users default response
func (*GetUsersDefault) WithPayload ¶
func (o *GetUsersDefault) WithPayload(payload *models.GenericError) *GetUsersDefault
WithPayload adds the payload to the get users default response
func (*GetUsersDefault) WithStatusCode ¶
func (o *GetUsersDefault) WithStatusCode(code int) *GetUsersDefault
WithStatusCode adds the status to the get users default response
func (*GetUsersDefault) WriteResponse ¶
func (o *GetUsersDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersForbidden ¶
type GetUsersForbidden struct { // In: body Payload *models.Unauthorized `json:"body,omitempty"` }
GetUsersForbidden User does not have the credentials to access this resource
swagger:response getUsersForbidden
func NewGetUsersForbidden ¶
func NewGetUsersForbidden() *GetUsersForbidden
NewGetUsersForbidden creates GetUsersForbidden with default headers values
func (*GetUsersForbidden) SetPayload ¶
func (o *GetUsersForbidden) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the get users forbidden response
func (*GetUsersForbidden) WithPayload ¶
func (o *GetUsersForbidden) WithPayload(payload *models.Unauthorized) *GetUsersForbidden
WithPayload adds the payload to the get users forbidden response
func (*GetUsersForbidden) WriteResponse ¶
func (o *GetUsersForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersHandler ¶
type GetUsersHandler interface {
Handle(GetUsersParams, interface{}) middleware.Responder
}
GetUsersHandler interface for that can handle valid get users params
type GetUsersHandlerFunc ¶
type GetUsersHandlerFunc func(GetUsersParams, interface{}) middleware.Responder
GetUsersHandlerFunc turns a function with the right signature into a get users handler
func (GetUsersHandlerFunc) Handle ¶
func (fn GetUsersHandlerFunc) Handle(params GetUsersParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetUsersNotFound ¶
GetUsersNotFound Resource not found
swagger:response getUsersNotFound
func NewGetUsersNotFound ¶
func NewGetUsersNotFound() *GetUsersNotFound
NewGetUsersNotFound creates GetUsersNotFound with default headers values
func (*GetUsersNotFound) SetPayload ¶
func (o *GetUsersNotFound) SetPayload(payload *models.NotFound)
SetPayload sets the payload to the get users not found response
func (*GetUsersNotFound) WithPayload ¶
func (o *GetUsersNotFound) WithPayload(payload *models.NotFound) *GetUsersNotFound
WithPayload adds the payload to the get users not found response
func (*GetUsersNotFound) WriteResponse ¶
func (o *GetUsersNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersOK ¶
type GetUsersOK struct { // In: body Payload GetUsersOKBodyBody `json:"body,omitempty"` }
GetUsersOK Get users
swagger:response getUsersOK
func NewGetUsersOK ¶
func NewGetUsersOK() *GetUsersOK
NewGetUsersOK creates GetUsersOK with default headers values
func (*GetUsersOK) SetPayload ¶
func (o *GetUsersOK) SetPayload(payload GetUsersOKBodyBody)
SetPayload sets the payload to the get users o k response
func (*GetUsersOK) WithPayload ¶
func (o *GetUsersOK) WithPayload(payload GetUsersOKBodyBody) *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 GetUsersOKBodyBody ¶
type GetUsersOKBodyBody struct { models.Pagination /* items Required: true */ Items []*models.User `json:"items"` }
GetUsersOKBodyBody get users o k body body
swagger:model GetUsersOKBodyBody
type GetUsersParams ¶
type GetUsersParams struct { // HTTP Request Object HTTPRequest *http.Request /*Limit In: query Default: 20 */ Limit *int64 /*Offset In: query Default: 0 */ Since *int64 }
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 GetUsersUnauthorized ¶
type GetUsersUnauthorized struct { models.Unauthorized `json:"body,omitempty"` }Payload *
GetUsersUnauthorized User not authorized
swagger:response getUsersUnauthorized
func NewGetUsersUnauthorized ¶
func NewGetUsersUnauthorized() *GetUsersUnauthorized
NewGetUsersUnauthorized creates GetUsersUnauthorized with default headers values
func (*GetUsersUnauthorized) SetPayload ¶
func (o *GetUsersUnauthorized) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the get users unauthorized response
func (*GetUsersUnauthorized) WithPayload ¶
func (o *GetUsersUnauthorized) WithPayload(payload *models.Unauthorized) *GetUsersUnauthorized
WithPayload adds the payload to the get users unauthorized response
func (*GetUsersUnauthorized) WriteResponse ¶
func (o *GetUsersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUser ¶
type UpdateUser struct { Context *middleware.Context Handler UpdateUserHandler }
UpdateUser swagger:route PUT /users/{user_id} users updateUser
Update user ¶
Update user details
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 UpdateUserDefault ¶
type UpdateUserDefault struct { // In: body Payload *models.GenericError `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateUserDefault Error
swagger:response updateUserDefault
func NewUpdateUserDefault ¶
func NewUpdateUserDefault(code int) *UpdateUserDefault
NewUpdateUserDefault creates UpdateUserDefault with default headers values
func (*UpdateUserDefault) SetPayload ¶
func (o *UpdateUserDefault) SetPayload(payload *models.GenericError)
SetPayload sets the payload to the update user default response
func (*UpdateUserDefault) SetStatusCode ¶
func (o *UpdateUserDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update user default response
func (*UpdateUserDefault) WithPayload ¶
func (o *UpdateUserDefault) WithPayload(payload *models.GenericError) *UpdateUserDefault
WithPayload adds the payload to the update user default response
func (*UpdateUserDefault) WithStatusCode ¶
func (o *UpdateUserDefault) WithStatusCode(code int) *UpdateUserDefault
WithStatusCode adds the status to the update user default response
func (*UpdateUserDefault) WriteResponse ¶
func (o *UpdateUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserForbidden ¶
type UpdateUserForbidden struct { // In: body Payload *models.Unauthorized `json:"body,omitempty"` }
UpdateUserForbidden User does not have the credentials to access this resource
swagger:response updateUserForbidden
func NewUpdateUserForbidden ¶
func NewUpdateUserForbidden() *UpdateUserForbidden
NewUpdateUserForbidden creates UpdateUserForbidden with default headers values
func (*UpdateUserForbidden) SetPayload ¶
func (o *UpdateUserForbidden) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the update user forbidden response
func (*UpdateUserForbidden) WithPayload ¶
func (o *UpdateUserForbidden) WithPayload(payload *models.Unauthorized) *UpdateUserForbidden
WithPayload adds the payload to the update user forbidden response
func (*UpdateUserForbidden) WriteResponse ¶
func (o *UpdateUserForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserHandler ¶
type UpdateUserHandler interface {
Handle(UpdateUserParams, interface{}) middleware.Responder
}
UpdateUserHandler interface for that can handle valid update user params
type UpdateUserHandlerFunc ¶
type UpdateUserHandlerFunc func(UpdateUserParams, interface{}) middleware.Responder
UpdateUserHandlerFunc turns a function with the right signature into a update user handler
func (UpdateUserHandlerFunc) Handle ¶
func (fn UpdateUserHandlerFunc) Handle(params UpdateUserParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateUserNotFound ¶
UpdateUserNotFound Resource not found
swagger:response updateUserNotFound
func NewUpdateUserNotFound ¶
func NewUpdateUserNotFound() *UpdateUserNotFound
NewUpdateUserNotFound creates UpdateUserNotFound with default headers values
func (*UpdateUserNotFound) SetPayload ¶
func (o *UpdateUserNotFound) SetPayload(payload *models.NotFound)
SetPayload sets the payload to the update user not found response
func (*UpdateUserNotFound) WithPayload ¶
func (o *UpdateUserNotFound) WithPayload(payload *models.NotFound) *UpdateUserNotFound
WithPayload adds the payload to the update user not found response
func (*UpdateUserNotFound) WriteResponse ¶
func (o *UpdateUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserOK ¶
UpdateUserOK User details
swagger:response updateUserOK
func NewUpdateUserOK ¶
func NewUpdateUserOK() *UpdateUserOK
NewUpdateUserOK creates UpdateUserOK with default headers values
func (*UpdateUserOK) SetPayload ¶
func (o *UpdateUserOK) SetPayload(payload *models.User)
SetPayload sets the payload to the update user o k response
func (*UpdateUserOK) WithPayload ¶
func (o *UpdateUserOK) WithPayload(payload *models.User) *UpdateUserOK
WithPayload adds the payload to the update user o k response
func (*UpdateUserOK) WriteResponse ¶
func (o *UpdateUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUserParams ¶
type UpdateUserParams struct { // HTTP Request Object HTTPRequest *http.Request /*User ID Required: true In: path */ UserID 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 UpdateUserUnauthorized ¶
type UpdateUserUnauthorized struct { models.Unauthorized `json:"body,omitempty"` }Payload *
UpdateUserUnauthorized User not authorized
swagger:response updateUserUnauthorized
func NewUpdateUserUnauthorized ¶
func NewUpdateUserUnauthorized() *UpdateUserUnauthorized
NewUpdateUserUnauthorized creates UpdateUserUnauthorized with default headers values
func (*UpdateUserUnauthorized) SetPayload ¶
func (o *UpdateUserUnauthorized) SetPayload(payload *models.Unauthorized)
SetPayload sets the payload to the update user unauthorized response
func (*UpdateUserUnauthorized) WithPayload ¶
func (o *UpdateUserUnauthorized) WithPayload(payload *models.Unauthorized) *UpdateUserUnauthorized
WithPayload adds the payload to the update user unauthorized response
func (*UpdateUserUnauthorized) WriteResponse ¶
func (o *UpdateUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- create_user.go
- create_user_parameters.go
- create_user_responses.go
- delete_user.go
- delete_user_parameters.go
- delete_user_responses.go
- get_current_user.go
- get_current_user_parameters.go
- get_current_user_responses.go
- get_user_details.go
- get_user_details_parameters.go
- get_user_details_responses.go
- get_users.go
- get_users_parameters.go
- get_users_responses.go
- update_user.go
- update_user_parameters.go
- update_user_responses.go