users

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

type CreateUserCreated struct {

	// In: body
	Payload *models.User `json:"body,omitempty"`
}

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 {

	// In: body
	Payload *models.Unauthorized `json:"body,omitempty"`
}

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

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

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

type GetCurrentUserNotFound struct {

	// In: body
	Payload *models.NotFound `json:"body,omitempty"`
}

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

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

type GetCurrentUserOK struct {

	// In: body
	Payload *models.User `json:"body,omitempty"`
}

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

type GetCurrentUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

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

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

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

type GetUserDetailsNotFound struct {

	// In: body
	Payload *models.NotFound `json:"body,omitempty"`
}

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

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

type GetUserDetailsOK struct {

	// In: body
	Payload *models.User `json:"body,omitempty"`
}

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 {

	// In: body
	Payload *models.Unauthorized `json:"body,omitempty"`
}

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

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

func (*GetUsers) ServeHTTP

func (o *GetUsers) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

type GetUsersNotFound struct {

	// In: body
	Payload *models.NotFound `json:"body,omitempty"`
}

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

func (*GetUsersOKBodyBody) Validate

func (o *GetUsersOKBodyBody) Validate(formats strfmt.Registry) error

Validate validates this get users o k body body

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 {

	// In: body
	Payload *models.Unauthorized `json:"body,omitempty"`
}

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

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

type UpdateUserNotFound struct {

	// In: body
	Payload *models.NotFound `json:"body,omitempty"`
}

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

type UpdateUserOK struct {

	// In: body
	Payload *models.User `json:"body,omitempty"`
}

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 {

	// In: body
	Payload *models.Unauthorized `json:"body,omitempty"`
}

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL