user

package
v0.0.0-...-4ddc152 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AddUserCreatedCode int = 201

AddUserCreatedCode is the HTTP code returned for type AddUserCreated

View Source
const DeleteUserNoContentCode int = 204

DeleteUserNoContentCode is the HTTP code returned for type DeleteUserNoContent

View Source
const UpdateUserOKCode int = 200

UpdateUserOKCode is the HTTP code returned for type UpdateUserOK

View Source
const UserByIDCreatedCode int = 201

UserByIDCreatedCode is the HTTP code returned for type UserByIDCreated

Variables

This section is empty.

Functions

This section is empty.

Types

type AddUser

type AddUser struct {
	Context *middleware.Context
	Handler AddUserHandler
}

AddUser swagger:route POST /user/add user addUser

Add a new user

func NewAddUser

func NewAddUser(ctx *middleware.Context, handler AddUserHandler) *AddUser

NewAddUser creates a new http.Handler for the add user operation

func (*AddUser) ServeHTTP

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

type AddUserCreated

type AddUserCreated struct {

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

AddUserCreated Created

swagger:response addUserCreated

func NewAddUserCreated

func NewAddUserCreated() *AddUserCreated

NewAddUserCreated creates AddUserCreated with default headers values

func (*AddUserCreated) SetPayload

func (o *AddUserCreated) SetPayload(payload *models.User)

SetPayload sets the payload to the add user created response

func (*AddUserCreated) WithPayload

func (o *AddUserCreated) WithPayload(payload *models.User) *AddUserCreated

WithPayload adds the payload to the add user created response

func (*AddUserCreated) WriteResponse

func (o *AddUserCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddUserDefault

type AddUserDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

AddUserDefault error

swagger:response addUserDefault

func NewAddUserDefault

func NewAddUserDefault(code int) *AddUserDefault

NewAddUserDefault creates AddUserDefault with default headers values

func (*AddUserDefault) SetPayload

func (o *AddUserDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the add user default response

func (*AddUserDefault) SetStatusCode

func (o *AddUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add user default response

func (*AddUserDefault) WithPayload

func (o *AddUserDefault) WithPayload(payload *models.Error) *AddUserDefault

WithPayload adds the payload to the add user default response

func (*AddUserDefault) WithStatusCode

func (o *AddUserDefault) WithStatusCode(code int) *AddUserDefault

WithStatusCode adds the status to the add user default response

func (*AddUserDefault) WriteResponse

func (o *AddUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddUserHandler

type AddUserHandler interface {
	Handle(AddUserParams) middleware.Responder
}

AddUserHandler interface for that can handle valid add user params

type AddUserHandlerFunc

type AddUserHandlerFunc func(AddUserParams) middleware.Responder

AddUserHandlerFunc turns a function with the right signature into a add user handler

func (AddUserHandlerFunc) Handle

Handle executing the request and returning a response

type AddUserParams

type AddUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: body
	*/
	Body *models.User
}

AddUserParams contains all the bound params for the add user operation typically these are obtained from a http.Request

swagger:parameters addUser

func NewAddUserParams

func NewAddUserParams() AddUserParams

NewAddUserParams creates a new AddUserParams object with the default values initialized.

func (*AddUserParams) BindRequest

func (o *AddUserParams) 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 AddUserURL

type AddUserURL struct {
	// contains filtered or unexported fields
}

AddUserURL generates an URL for the add user operation

func (*AddUserURL) Build

func (o *AddUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*AddUserURL) BuildFull

func (o *AddUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AddUserURL) Must

func (o *AddUserURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AddUserURL) SetBasePath

func (o *AddUserURL) 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 (*AddUserURL) String

func (o *AddUserURL) String() string

String returns the string representation of the path with query string

func (*AddUserURL) StringFull

func (o *AddUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AddUserURL) WithBasePath

func (o *AddUserURL) WithBasePath(bp string) *AddUserURL

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 /user/{_id} user deleteUser

DeleteUser delete user API

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.Error `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.Error)

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.Error) *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) 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

Handle executing the request and returning a response

type DeleteUserNoContent

type DeleteUserNoContent struct {
}

DeleteUserNoContent Deleted

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 `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID string
}

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 string
	// 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

func (o *DeleteUserURL) Must(u *url.URL, err error) *url.URL

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 UpdateUser

type UpdateUser struct {
	Context *middleware.Context
	Handler UpdateUserHandler
}

UpdateUser swagger:route PUT /user/{_id} user updateUser

UpdateUser update user API

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.Error `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.Error)

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.Error) *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 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

Handle executing the request and returning a response

type UpdateUserOK

type UpdateUserOK struct {

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

UpdateUserOK OK

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 `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID string
	/*
	  In: body
	*/
	Body *models.User
}

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 string
	// 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

func (o *UpdateUserURL) Must(u *url.URL, err error) *url.URL

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

type UserByID

type UserByID struct {
	Context *middleware.Context
	Handler UserByIDHandler
}

UserByID swagger:route GET /user/{_id} user userById

Get user by ID

func NewUserByID

func NewUserByID(ctx *middleware.Context, handler UserByIDHandler) *UserByID

NewUserByID creates a new http.Handler for the user by Id operation

func (*UserByID) ServeHTTP

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

type UserByIDCreated

type UserByIDCreated struct {

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

UserByIDCreated Created

swagger:response userByIdCreated

func NewUserByIDCreated

func NewUserByIDCreated() *UserByIDCreated

NewUserByIDCreated creates UserByIDCreated with default headers values

func (*UserByIDCreated) SetPayload

func (o *UserByIDCreated) SetPayload(payload *models.User)

SetPayload sets the payload to the user by Id created response

func (*UserByIDCreated) WithPayload

func (o *UserByIDCreated) WithPayload(payload *models.User) *UserByIDCreated

WithPayload adds the payload to the user by Id created response

func (*UserByIDCreated) WriteResponse

func (o *UserByIDCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UserByIDDefault

type UserByIDDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UserByIDDefault error

swagger:response userByIdDefault

func NewUserByIDDefault

func NewUserByIDDefault(code int) *UserByIDDefault

NewUserByIDDefault creates UserByIDDefault with default headers values

func (*UserByIDDefault) SetPayload

func (o *UserByIDDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the user by Id default response

func (*UserByIDDefault) SetStatusCode

func (o *UserByIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the user by Id default response

func (*UserByIDDefault) WithPayload

func (o *UserByIDDefault) WithPayload(payload *models.Error) *UserByIDDefault

WithPayload adds the payload to the user by Id default response

func (*UserByIDDefault) WithStatusCode

func (o *UserByIDDefault) WithStatusCode(code int) *UserByIDDefault

WithStatusCode adds the status to the user by Id default response

func (*UserByIDDefault) WriteResponse

func (o *UserByIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UserByIDHandler

type UserByIDHandler interface {
	Handle(UserByIDParams) middleware.Responder
}

UserByIDHandler interface for that can handle valid user by Id params

type UserByIDHandlerFunc

type UserByIDHandlerFunc func(UserByIDParams) middleware.Responder

UserByIDHandlerFunc turns a function with the right signature into a user by Id handler

func (UserByIDHandlerFunc) Handle

Handle executing the request and returning a response

type UserByIDParams

type UserByIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID string
}

UserByIDParams contains all the bound params for the user by Id operation typically these are obtained from a http.Request

swagger:parameters userById

func NewUserByIDParams

func NewUserByIDParams() UserByIDParams

NewUserByIDParams creates a new UserByIDParams object with the default values initialized.

func (*UserByIDParams) BindRequest

func (o *UserByIDParams) 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 UserByIDURL

type UserByIDURL struct {
	ID string
	// contains filtered or unexported fields
}

UserByIDURL generates an URL for the user by Id operation

func (*UserByIDURL) Build

func (o *UserByIDURL) Build() (*url.URL, error)

Build a url path and query string

func (*UserByIDURL) BuildFull

func (o *UserByIDURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UserByIDURL) Must

func (o *UserByIDURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UserByIDURL) SetBasePath

func (o *UserByIDURL) 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 (*UserByIDURL) String

func (o *UserByIDURL) String() string

String returns the string representation of the path with query string

func (*UserByIDURL) StringFull

func (o *UserByIDURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UserByIDURL) WithBasePath

func (o *UserByIDURL) WithBasePath(bp string) *UserByIDURL

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

Jump to

Keyboard shortcuts

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