go-swagger: github.com/go-swagger/go-swagger/examples/generated/restapi/operations/user Index | Files

package user

import "github.com/go-swagger/go-swagger/examples/generated/restapi/operations/user"

Index

Package Files

create_user.go create_user_parameters.go create_user_responses.go create_user_urlbuilder.go create_users_with_array_input.go create_users_with_array_input_parameters.go create_users_with_array_input_responses.go create_users_with_array_input_urlbuilder.go create_users_with_list_input.go create_users_with_list_input_parameters.go create_users_with_list_input_responses.go create_users_with_list_input_urlbuilder.go delete_user.go delete_user_parameters.go delete_user_responses.go delete_user_urlbuilder.go get_user_by_name.go get_user_by_name_parameters.go get_user_by_name_responses.go get_user_by_name_urlbuilder.go login_user.go login_user_parameters.go login_user_responses.go login_user_urlbuilder.go logout_user.go logout_user_parameters.go logout_user_responses.go logout_user_urlbuilder.go update_user.go update_user_parameters.go update_user_responses.go update_user_urlbuilder.go

Constants

const DeleteUserBadRequestCode int = 400

DeleteUserBadRequestCode is the HTTP code returned for type DeleteUserBadRequest

const DeleteUserNotFoundCode int = 404

DeleteUserNotFoundCode is the HTTP code returned for type DeleteUserNotFound

const GetUserByNameBadRequestCode int = 400

GetUserByNameBadRequestCode is the HTTP code returned for type GetUserByNameBadRequest

const GetUserByNameNotFoundCode int = 404

GetUserByNameNotFoundCode is the HTTP code returned for type GetUserByNameNotFound

const GetUserByNameOKCode int = 200

GetUserByNameOKCode is the HTTP code returned for type GetUserByNameOK

const LoginUserBadRequestCode int = 400

LoginUserBadRequestCode is the HTTP code returned for type LoginUserBadRequest

const LoginUserOKCode int = 200

LoginUserOKCode is the HTTP code returned for type LoginUserOK

const UpdateUserBadRequestCode int = 400

UpdateUserBadRequestCode is the HTTP code returned for type UpdateUserBadRequest

const UpdateUserNotFoundCode int = 404

UpdateUserNotFoundCode is the HTTP code returned for type UpdateUserNotFound

type CreateUser Uses

type CreateUser struct {
    Context *middleware.Context
    Handler CreateUserHandler
}

CreateUser swagger:route POST /users user createUser

Create user

This can only be done by the logged in user.

func NewCreateUser Uses

func NewCreateUser(ctx *middleware.Context, handler CreateUserHandler) *CreateUser

NewCreateUser creates a new http.Handler for the create user operation

func (*CreateUser) ServeHTTP Uses

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

type CreateUserDefault Uses

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

CreateUserDefault successful operation

swagger:response createUserDefault

func NewCreateUserDefault Uses

func NewCreateUserDefault(code int) *CreateUserDefault

NewCreateUserDefault creates CreateUserDefault with default headers values

func (*CreateUserDefault) SetStatusCode Uses

func (o *CreateUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create user default response

func (*CreateUserDefault) WithStatusCode Uses

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

WithStatusCode adds the status to the create user default response

func (*CreateUserDefault) WriteResponse Uses

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

WriteResponse to the client

type CreateUserHandler Uses

type CreateUserHandler interface {
    Handle(CreateUserParams) middleware.Responder
}

CreateUserHandler interface for that can handle valid create user params

type CreateUserHandlerFunc Uses

type CreateUserHandlerFunc func(CreateUserParams) middleware.Responder

CreateUserHandlerFunc turns a function with the right signature into a create user handler

func (CreateUserHandlerFunc) Handle Uses

func (fn CreateUserHandlerFunc) Handle(params CreateUserParams) middleware.Responder

Handle executing the request and returning a response

type CreateUserParams Uses

type CreateUserParams struct {

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

    /*Created user object
      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 Uses

func NewCreateUserParams() CreateUserParams

NewCreateUserParams creates a new CreateUserParams object no default values defined in spec.

func (*CreateUserParams) BindRequest Uses

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.

To ensure default values, the struct must have been initialized with NewCreateUserParams() beforehand.

type CreateUserURL Uses

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

CreateUserURL generates an URL for the create user operation

func (*CreateUserURL) Build Uses

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

Build a url path and query string

func (*CreateUserURL) BuildFull Uses

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

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

func (*CreateUserURL) Must Uses

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

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

func (*CreateUserURL) SetBasePath Uses

func (o *CreateUserURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateUserURL) String Uses

func (o *CreateUserURL) String() string

String returns the string representation of the path with query string

func (*CreateUserURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*CreateUserURL) WithBasePath Uses

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

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateUsersWithArrayInput Uses

type CreateUsersWithArrayInput struct {
    Context *middleware.Context
    Handler CreateUsersWithArrayInputHandler
}

CreateUsersWithArrayInput swagger:route POST /users/createWithArray user createUsersWithArrayInput

Creates list of users with given input array

func NewCreateUsersWithArrayInput Uses

func NewCreateUsersWithArrayInput(ctx *middleware.Context, handler CreateUsersWithArrayInputHandler) *CreateUsersWithArrayInput

NewCreateUsersWithArrayInput creates a new http.Handler for the create users with array input operation

func (*CreateUsersWithArrayInput) ServeHTTP Uses

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

type CreateUsersWithArrayInputDefault Uses

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

CreateUsersWithArrayInputDefault successful operation

swagger:response createUsersWithArrayInputDefault

func NewCreateUsersWithArrayInputDefault Uses

func NewCreateUsersWithArrayInputDefault(code int) *CreateUsersWithArrayInputDefault

NewCreateUsersWithArrayInputDefault creates CreateUsersWithArrayInputDefault with default headers values

func (*CreateUsersWithArrayInputDefault) SetStatusCode Uses

func (o *CreateUsersWithArrayInputDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create users with array input default response

func (*CreateUsersWithArrayInputDefault) WithStatusCode Uses

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

WithStatusCode adds the status to the create users with array input default response

func (*CreateUsersWithArrayInputDefault) WriteResponse Uses

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

WriteResponse to the client

type CreateUsersWithArrayInputHandler Uses

type CreateUsersWithArrayInputHandler interface {
    Handle(CreateUsersWithArrayInputParams) middleware.Responder
}

CreateUsersWithArrayInputHandler interface for that can handle valid create users with array input params

type CreateUsersWithArrayInputHandlerFunc Uses

type CreateUsersWithArrayInputHandlerFunc func(CreateUsersWithArrayInputParams) middleware.Responder

CreateUsersWithArrayInputHandlerFunc turns a function with the right signature into a create users with array input handler

func (CreateUsersWithArrayInputHandlerFunc) Handle Uses

func (fn CreateUsersWithArrayInputHandlerFunc) Handle(params CreateUsersWithArrayInputParams) middleware.Responder

Handle executing the request and returning a response

type CreateUsersWithArrayInputParams Uses

type CreateUsersWithArrayInputParams struct {

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

    /*List of user object
      In: body
    */
    Body []*models.User
}

CreateUsersWithArrayInputParams contains all the bound params for the create users with array input operation typically these are obtained from a http.Request

swagger:parameters createUsersWithArrayInput

func NewCreateUsersWithArrayInputParams Uses

func NewCreateUsersWithArrayInputParams() CreateUsersWithArrayInputParams

NewCreateUsersWithArrayInputParams creates a new CreateUsersWithArrayInputParams object no default values defined in spec.

func (*CreateUsersWithArrayInputParams) BindRequest Uses

func (o *CreateUsersWithArrayInputParams) 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.

To ensure default values, the struct must have been initialized with NewCreateUsersWithArrayInputParams() beforehand.

type CreateUsersWithArrayInputURL Uses

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

CreateUsersWithArrayInputURL generates an URL for the create users with array input operation

func (*CreateUsersWithArrayInputURL) Build Uses

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

Build a url path and query string

func (*CreateUsersWithArrayInputURL) BuildFull Uses

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

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

func (*CreateUsersWithArrayInputURL) Must Uses

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

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

func (*CreateUsersWithArrayInputURL) SetBasePath Uses

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

func (o *CreateUsersWithArrayInputURL) String() string

String returns the string representation of the path with query string

func (*CreateUsersWithArrayInputURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*CreateUsersWithArrayInputURL) WithBasePath Uses

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

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 CreateUsersWithListInput Uses

type CreateUsersWithListInput struct {
    Context *middleware.Context
    Handler CreateUsersWithListInputHandler
}

CreateUsersWithListInput swagger:route POST /users/createWithList user createUsersWithListInput

Creates list of users with given input array

func NewCreateUsersWithListInput Uses

func NewCreateUsersWithListInput(ctx *middleware.Context, handler CreateUsersWithListInputHandler) *CreateUsersWithListInput

NewCreateUsersWithListInput creates a new http.Handler for the create users with list input operation

func (*CreateUsersWithListInput) ServeHTTP Uses

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

type CreateUsersWithListInputDefault Uses

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

CreateUsersWithListInputDefault successful operation

swagger:response createUsersWithListInputDefault

func NewCreateUsersWithListInputDefault Uses

func NewCreateUsersWithListInputDefault(code int) *CreateUsersWithListInputDefault

NewCreateUsersWithListInputDefault creates CreateUsersWithListInputDefault with default headers values

func (*CreateUsersWithListInputDefault) SetStatusCode Uses

func (o *CreateUsersWithListInputDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create users with list input default response

func (*CreateUsersWithListInputDefault) WithStatusCode Uses

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

WithStatusCode adds the status to the create users with list input default response

func (*CreateUsersWithListInputDefault) WriteResponse Uses

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

WriteResponse to the client

type CreateUsersWithListInputHandler Uses

type CreateUsersWithListInputHandler interface {
    Handle(CreateUsersWithListInputParams) middleware.Responder
}

CreateUsersWithListInputHandler interface for that can handle valid create users with list input params

type CreateUsersWithListInputHandlerFunc Uses

type CreateUsersWithListInputHandlerFunc func(CreateUsersWithListInputParams) middleware.Responder

CreateUsersWithListInputHandlerFunc turns a function with the right signature into a create users with list input handler

func (CreateUsersWithListInputHandlerFunc) Handle Uses

func (fn CreateUsersWithListInputHandlerFunc) Handle(params CreateUsersWithListInputParams) middleware.Responder

Handle executing the request and returning a response

type CreateUsersWithListInputParams Uses

type CreateUsersWithListInputParams struct {

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

    /*List of user object
      In: body
    */
    Body []*models.User
}

CreateUsersWithListInputParams contains all the bound params for the create users with list input operation typically these are obtained from a http.Request

swagger:parameters createUsersWithListInput

func NewCreateUsersWithListInputParams Uses

func NewCreateUsersWithListInputParams() CreateUsersWithListInputParams

NewCreateUsersWithListInputParams creates a new CreateUsersWithListInputParams object no default values defined in spec.

func (*CreateUsersWithListInputParams) BindRequest Uses

func (o *CreateUsersWithListInputParams) 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.

To ensure default values, the struct must have been initialized with NewCreateUsersWithListInputParams() beforehand.

type CreateUsersWithListInputURL Uses

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

CreateUsersWithListInputURL generates an URL for the create users with list input operation

func (*CreateUsersWithListInputURL) Build Uses

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

Build a url path and query string

func (*CreateUsersWithListInputURL) BuildFull Uses

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

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

func (*CreateUsersWithListInputURL) Must Uses

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

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

func (*CreateUsersWithListInputURL) SetBasePath Uses

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

func (o *CreateUsersWithListInputURL) String() string

String returns the string representation of the path with query string

func (*CreateUsersWithListInputURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*CreateUsersWithListInputURL) WithBasePath Uses

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

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 Uses

type DeleteUser struct {
    Context *middleware.Context
    Handler DeleteUserHandler
}

DeleteUser swagger:route DELETE /users/{username} user deleteUser

Delete user

This can only be done by the logged in user.

func NewDeleteUser Uses

func NewDeleteUser(ctx *middleware.Context, handler DeleteUserHandler) *DeleteUser

NewDeleteUser creates a new http.Handler for the delete user operation

func (*DeleteUser) ServeHTTP Uses

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

type DeleteUserBadRequest Uses

type DeleteUserBadRequest struct {
}

DeleteUserBadRequest Invalid username supplied

swagger:response deleteUserBadRequest

func NewDeleteUserBadRequest Uses

func NewDeleteUserBadRequest() *DeleteUserBadRequest

NewDeleteUserBadRequest creates DeleteUserBadRequest with default headers values

func (*DeleteUserBadRequest) WriteResponse Uses

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

WriteResponse to the client

type DeleteUserHandler Uses

type DeleteUserHandler interface {
    Handle(DeleteUserParams) middleware.Responder
}

DeleteUserHandler interface for that can handle valid delete user params

type DeleteUserHandlerFunc Uses

type DeleteUserHandlerFunc func(DeleteUserParams) middleware.Responder

DeleteUserHandlerFunc turns a function with the right signature into a delete user handler

func (DeleteUserHandlerFunc) Handle Uses

func (fn DeleteUserHandlerFunc) Handle(params DeleteUserParams) middleware.Responder

Handle executing the request and returning a response

type DeleteUserNotFound Uses

type DeleteUserNotFound struct {
}

DeleteUserNotFound User not found

swagger:response deleteUserNotFound

func NewDeleteUserNotFound Uses

func NewDeleteUserNotFound() *DeleteUserNotFound

NewDeleteUserNotFound creates DeleteUserNotFound with default headers values

func (*DeleteUserNotFound) WriteResponse Uses

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

WriteResponse to the client

type DeleteUserParams Uses

type DeleteUserParams struct {

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

    /*The name that needs to be deleted
      Required: true
      In: path
    */
    Username 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 Uses

func NewDeleteUserParams() DeleteUserParams

NewDeleteUserParams creates a new DeleteUserParams object no default values defined in spec.

func (*DeleteUserParams) BindRequest Uses

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.

To ensure default values, the struct must have been initialized with NewDeleteUserParams() beforehand.

type DeleteUserURL Uses

type DeleteUserURL struct {
    Username string
    // contains filtered or unexported fields
}

DeleteUserURL generates an URL for the delete user operation

func (*DeleteUserURL) Build Uses

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

Build a url path and query string

func (*DeleteUserURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *DeleteUserURL) String() string

String returns the string representation of the path with query string

func (*DeleteUserURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*DeleteUserURL) WithBasePath Uses

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 GetUserByName Uses

type GetUserByName struct {
    Context *middleware.Context
    Handler GetUserByNameHandler
}

GetUserByName swagger:route GET /users/{username} user getUserByName

Get user by user name

func NewGetUserByName Uses

func NewGetUserByName(ctx *middleware.Context, handler GetUserByNameHandler) *GetUserByName

NewGetUserByName creates a new http.Handler for the get user by name operation

func (*GetUserByName) ServeHTTP Uses

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

type GetUserByNameBadRequest Uses

type GetUserByNameBadRequest struct {
}

GetUserByNameBadRequest Invalid username supplied

swagger:response getUserByNameBadRequest

func NewGetUserByNameBadRequest Uses

func NewGetUserByNameBadRequest() *GetUserByNameBadRequest

NewGetUserByNameBadRequest creates GetUserByNameBadRequest with default headers values

func (*GetUserByNameBadRequest) WriteResponse Uses

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

WriteResponse to the client

type GetUserByNameHandler Uses

type GetUserByNameHandler interface {
    Handle(GetUserByNameParams) middleware.Responder
}

GetUserByNameHandler interface for that can handle valid get user by name params

type GetUserByNameHandlerFunc Uses

type GetUserByNameHandlerFunc func(GetUserByNameParams) middleware.Responder

GetUserByNameHandlerFunc turns a function with the right signature into a get user by name handler

func (GetUserByNameHandlerFunc) Handle Uses

func (fn GetUserByNameHandlerFunc) Handle(params GetUserByNameParams) middleware.Responder

Handle executing the request and returning a response

type GetUserByNameNotFound Uses

type GetUserByNameNotFound struct {
}

GetUserByNameNotFound User not found

swagger:response getUserByNameNotFound

func NewGetUserByNameNotFound Uses

func NewGetUserByNameNotFound() *GetUserByNameNotFound

NewGetUserByNameNotFound creates GetUserByNameNotFound with default headers values

func (*GetUserByNameNotFound) WriteResponse Uses

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

WriteResponse to the client

type GetUserByNameOK Uses

type GetUserByNameOK struct {

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

GetUserByNameOK successful operation

swagger:response getUserByNameOK

func NewGetUserByNameOK Uses

func NewGetUserByNameOK() *GetUserByNameOK

NewGetUserByNameOK creates GetUserByNameOK with default headers values

func (*GetUserByNameOK) SetPayload Uses

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

SetPayload sets the payload to the get user by name o k response

func (*GetUserByNameOK) WithPayload Uses

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

WithPayload adds the payload to the get user by name o k response

func (*GetUserByNameOK) WriteResponse Uses

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

WriteResponse to the client

type GetUserByNameParams Uses

type GetUserByNameParams struct {

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

    /*The name that needs to be fetched. Use user1 for testing.
      Required: true
      In: path
    */
    Username string
}

GetUserByNameParams contains all the bound params for the get user by name operation typically these are obtained from a http.Request

swagger:parameters getUserByName

func NewGetUserByNameParams Uses

func NewGetUserByNameParams() GetUserByNameParams

NewGetUserByNameParams creates a new GetUserByNameParams object no default values defined in spec.

func (*GetUserByNameParams) BindRequest Uses

func (o *GetUserByNameParams) 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.

To ensure default values, the struct must have been initialized with NewGetUserByNameParams() beforehand.

type GetUserByNameURL Uses

type GetUserByNameURL struct {
    Username string
    // contains filtered or unexported fields
}

GetUserByNameURL generates an URL for the get user by name operation

func (*GetUserByNameURL) Build Uses

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

Build a url path and query string

func (*GetUserByNameURL) BuildFull Uses

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

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

func (*GetUserByNameURL) Must Uses

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

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

func (*GetUserByNameURL) SetBasePath Uses

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

func (o *GetUserByNameURL) String() string

String returns the string representation of the path with query string

func (*GetUserByNameURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*GetUserByNameURL) WithBasePath Uses

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

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 LoginUser Uses

type LoginUser struct {
    Context *middleware.Context
    Handler LoginUserHandler
}

LoginUser swagger:route GET /users/login user loginUser

Logs user into the system

func NewLoginUser Uses

func NewLoginUser(ctx *middleware.Context, handler LoginUserHandler) *LoginUser

NewLoginUser creates a new http.Handler for the login user operation

func (*LoginUser) ServeHTTP Uses

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

type LoginUserBadRequest Uses

type LoginUserBadRequest struct {
}

LoginUserBadRequest Invalid username/password supplied

swagger:response loginUserBadRequest

func NewLoginUserBadRequest Uses

func NewLoginUserBadRequest() *LoginUserBadRequest

NewLoginUserBadRequest creates LoginUserBadRequest with default headers values

func (*LoginUserBadRequest) WriteResponse Uses

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

WriteResponse to the client

type LoginUserHandler Uses

type LoginUserHandler interface {
    Handle(LoginUserParams) middleware.Responder
}

LoginUserHandler interface for that can handle valid login user params

type LoginUserHandlerFunc Uses

type LoginUserHandlerFunc func(LoginUserParams) middleware.Responder

LoginUserHandlerFunc turns a function with the right signature into a login user handler

func (LoginUserHandlerFunc) Handle Uses

func (fn LoginUserHandlerFunc) Handle(params LoginUserParams) middleware.Responder

Handle executing the request and returning a response

type LoginUserOK Uses

type LoginUserOK struct {

    /*
      In: Body
    */
    Payload string `json:"body,omitempty"`
}

LoginUserOK successful operation

swagger:response loginUserOK

func NewLoginUserOK Uses

func NewLoginUserOK() *LoginUserOK

NewLoginUserOK creates LoginUserOK with default headers values

func (*LoginUserOK) SetPayload Uses

func (o *LoginUserOK) SetPayload(payload string)

SetPayload sets the payload to the login user o k response

func (*LoginUserOK) WithPayload Uses

func (o *LoginUserOK) WithPayload(payload string) *LoginUserOK

WithPayload adds the payload to the login user o k response

func (*LoginUserOK) WriteResponse Uses

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

WriteResponse to the client

type LoginUserParams Uses

type LoginUserParams struct {

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

    /*The password for login in clear text
      In: query
    */
    Password *string
    /*The user name for login
      In: query
    */
    Username *string
}

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

swagger:parameters loginUser

func NewLoginUserParams Uses

func NewLoginUserParams() LoginUserParams

NewLoginUserParams creates a new LoginUserParams object no default values defined in spec.

func (*LoginUserParams) BindRequest Uses

func (o *LoginUserParams) 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.

To ensure default values, the struct must have been initialized with NewLoginUserParams() beforehand.

type LoginUserURL Uses

type LoginUserURL struct {
    Password *string
    Username *string
    // contains filtered or unexported fields
}

LoginUserURL generates an URL for the login user operation

func (*LoginUserURL) Build Uses

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

Build a url path and query string

func (*LoginUserURL) BuildFull Uses

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

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

func (*LoginUserURL) Must Uses

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

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

func (*LoginUserURL) SetBasePath Uses

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

func (o *LoginUserURL) String() string

String returns the string representation of the path with query string

func (*LoginUserURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*LoginUserURL) WithBasePath Uses

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

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 LogoutUser Uses

type LogoutUser struct {
    Context *middleware.Context
    Handler LogoutUserHandler
}

LogoutUser swagger:route GET /users/logout user logoutUser

Logs out current logged in user session

func NewLogoutUser Uses

func NewLogoutUser(ctx *middleware.Context, handler LogoutUserHandler) *LogoutUser

NewLogoutUser creates a new http.Handler for the logout user operation

func (*LogoutUser) ServeHTTP Uses

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

type LogoutUserDefault Uses

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

LogoutUserDefault successful operation

swagger:response logoutUserDefault

func NewLogoutUserDefault Uses

func NewLogoutUserDefault(code int) *LogoutUserDefault

NewLogoutUserDefault creates LogoutUserDefault with default headers values

func (*LogoutUserDefault) SetStatusCode Uses

func (o *LogoutUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the logout user default response

func (*LogoutUserDefault) WithStatusCode Uses

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

WithStatusCode adds the status to the logout user default response

func (*LogoutUserDefault) WriteResponse Uses

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

WriteResponse to the client

type LogoutUserHandler Uses

type LogoutUserHandler interface {
    Handle(LogoutUserParams) middleware.Responder
}

LogoutUserHandler interface for that can handle valid logout user params

type LogoutUserHandlerFunc Uses

type LogoutUserHandlerFunc func(LogoutUserParams) middleware.Responder

LogoutUserHandlerFunc turns a function with the right signature into a logout user handler

func (LogoutUserHandlerFunc) Handle Uses

func (fn LogoutUserHandlerFunc) Handle(params LogoutUserParams) middleware.Responder

Handle executing the request and returning a response

type LogoutUserParams Uses

type LogoutUserParams struct {

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

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

swagger:parameters logoutUser

func NewLogoutUserParams Uses

func NewLogoutUserParams() LogoutUserParams

NewLogoutUserParams creates a new LogoutUserParams object no default values defined in spec.

func (*LogoutUserParams) BindRequest Uses

func (o *LogoutUserParams) 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.

To ensure default values, the struct must have been initialized with NewLogoutUserParams() beforehand.

type LogoutUserURL Uses

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

LogoutUserURL generates an URL for the logout user operation

func (*LogoutUserURL) Build Uses

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

Build a url path and query string

func (*LogoutUserURL) BuildFull Uses

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

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

func (*LogoutUserURL) Must Uses

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

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

func (*LogoutUserURL) SetBasePath Uses

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

func (o *LogoutUserURL) String() string

String returns the string representation of the path with query string

func (*LogoutUserURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*LogoutUserURL) WithBasePath Uses

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

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 Uses

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

UpdateUser swagger:route PUT /users/{username} user updateUser

Updated user

This can only be done by the logged in user.

func NewUpdateUser Uses

func NewUpdateUser(ctx *middleware.Context, handler UpdateUserHandler) *UpdateUser

NewUpdateUser creates a new http.Handler for the update user operation

func (*UpdateUser) ServeHTTP Uses

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

type UpdateUserBadRequest Uses

type UpdateUserBadRequest struct {
}

UpdateUserBadRequest Invalid user supplied

swagger:response updateUserBadRequest

func NewUpdateUserBadRequest Uses

func NewUpdateUserBadRequest() *UpdateUserBadRequest

NewUpdateUserBadRequest creates UpdateUserBadRequest with default headers values

func (*UpdateUserBadRequest) WriteResponse Uses

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

WriteResponse to the client

type UpdateUserHandler Uses

type UpdateUserHandler interface {
    Handle(UpdateUserParams) middleware.Responder
}

UpdateUserHandler interface for that can handle valid update user params

type UpdateUserHandlerFunc Uses

type UpdateUserHandlerFunc func(UpdateUserParams) middleware.Responder

UpdateUserHandlerFunc turns a function with the right signature into a update user handler

func (UpdateUserHandlerFunc) Handle Uses

func (fn UpdateUserHandlerFunc) Handle(params UpdateUserParams) middleware.Responder

Handle executing the request and returning a response

type UpdateUserNotFound Uses

type UpdateUserNotFound struct {
}

UpdateUserNotFound User not found

swagger:response updateUserNotFound

func NewUpdateUserNotFound Uses

func NewUpdateUserNotFound() *UpdateUserNotFound

NewUpdateUserNotFound creates UpdateUserNotFound with default headers values

func (*UpdateUserNotFound) WriteResponse Uses

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

WriteResponse to the client

type UpdateUserParams Uses

type UpdateUserParams struct {

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

    /*Updated user object
      In: body
    */
    Body *models.User
    /*name that need to be deleted
      Required: true
      In: path
    */
    Username string
}

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

swagger:parameters updateUser

func NewUpdateUserParams Uses

func NewUpdateUserParams() UpdateUserParams

NewUpdateUserParams creates a new UpdateUserParams object no default values defined in spec.

func (*UpdateUserParams) BindRequest Uses

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.

To ensure default values, the struct must have been initialized with NewUpdateUserParams() beforehand.

type UpdateUserURL Uses

type UpdateUserURL struct {
    Username string
    // contains filtered or unexported fields
}

UpdateUserURL generates an URL for the update user operation

func (*UpdateUserURL) Build Uses

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

Build a url path and query string

func (*UpdateUserURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *UpdateUserURL) String() string

String returns the string representation of the path with query string

func (*UpdateUserURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*UpdateUserURL) WithBasePath Uses

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

Package user imports 10 packages (graph) and is imported by 10 packages. Updated 2019-07-28. Refresh now. Tools for package owners.