Documentation
¶
Index ¶
- Constants
- type CreateUser
- type CreateUserConflict
- type CreateUserCreated
- type CreateUserHandler
- type CreateUserHandlerFunc
- type CreateUserInternalServerError
- type CreateUserParams
- type CreateUserURL
- func (o *CreateUserURL) Build() (*url.URL, error)
- func (o *CreateUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateUserURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateUserURL) SetBasePath(bp string)
- func (o *CreateUserURL) String() string
- func (o *CreateUserURL) StringFull(scheme, host string) string
- func (o *CreateUserURL) WithBasePath(bp string) *CreateUserURL
- type GetUser
- type GetUserHandler
- type GetUserHandlerFunc
- type GetUserInternalServerError
- type GetUserOK
- type GetUserParams
- type GetUserURL
- func (o *GetUserURL) Build() (*url.URL, error)
- func (o *GetUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUserURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUserURL) SetBasePath(bp string)
- func (o *GetUserURL) String() string
- func (o *GetUserURL) StringFull(scheme, host string) string
- func (o *GetUserURL) WithBasePath(bp string) *GetUserURL
- type Login
- type LoginHandler
- type LoginHandlerFunc
- type LoginInternalServerError
- type LoginOK
- func (o *LoginOK) SetPayload(payload *models.UserInfo)
- func (o *LoginOK) SetSetCookie(setCookie string)
- func (o *LoginOK) WithPayload(payload *models.UserInfo) *LoginOK
- func (o *LoginOK) WithSetCookie(setCookie string) *LoginOK
- func (o *LoginOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type LoginParams
- type LoginURL
- func (o *LoginURL) Build() (*url.URL, error)
- func (o *LoginURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LoginURL) Must(u *url.URL, err error) *url.URL
- func (o *LoginURL) SetBasePath(bp string)
- func (o *LoginURL) String() string
- func (o *LoginURL) StringFull(scheme, host string) string
- func (o *LoginURL) WithBasePath(bp string) *LoginURL
- type LoginUnauthorized
- type Logout
- type LogoutHandler
- type LogoutHandlerFunc
- type LogoutInternalServerError
- type LogoutOK
- type LogoutParams
- type LogoutURL
- func (o *LogoutURL) Build() (*url.URL, error)
- func (o *LogoutURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LogoutURL) Must(u *url.URL, err error) *url.URL
- func (o *LogoutURL) SetBasePath(bp string)
- func (o *LogoutURL) String() string
- func (o *LogoutURL) StringFull(scheme, host string) string
- func (o *LogoutURL) WithBasePath(bp string) *LogoutURL
- type LogoutUnauthorized
- type Whoami
- type WhoamiHandler
- type WhoamiHandlerFunc
- type WhoamiOK
- type WhoamiParams
- type WhoamiURL
- func (o *WhoamiURL) Build() (*url.URL, error)
- func (o *WhoamiURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *WhoamiURL) Must(u *url.URL, err error) *url.URL
- func (o *WhoamiURL) SetBasePath(bp string)
- func (o *WhoamiURL) String() string
- func (o *WhoamiURL) StringFull(scheme, host string) string
- func (o *WhoamiURL) WithBasePath(bp string) *WhoamiURL
Constants ¶
const CreateUserConflictCode int = 409
CreateUserConflictCode is the HTTP code returned for type CreateUserConflict
const CreateUserCreatedCode int = 201
CreateUserCreatedCode is the HTTP code returned for type CreateUserCreated
const CreateUserInternalServerErrorCode int = 500
CreateUserInternalServerErrorCode is the HTTP code returned for type CreateUserInternalServerError
const GetUserInternalServerErrorCode int = 500
GetUserInternalServerErrorCode is the HTTP code returned for type GetUserInternalServerError
const GetUserOKCode int = 200
GetUserOKCode is the HTTP code returned for type GetUserOK
const LoginInternalServerErrorCode int = 500
LoginInternalServerErrorCode is the HTTP code returned for type LoginInternalServerError
const LoginOKCode int = 200
LoginOKCode is the HTTP code returned for type LoginOK
LoginUnauthorizedCode is the HTTP code returned for type LoginUnauthorized
const LogoutInternalServerErrorCode int = 500
LogoutInternalServerErrorCode is the HTTP code returned for type LogoutInternalServerError
const LogoutOKCode int = 200
LogoutOKCode is the HTTP code returned for type LogoutOK
LogoutUnauthorizedCode is the HTTP code returned for type LogoutUnauthorized
const WhoamiOKCode int = 200
WhoamiOKCode is the HTTP code returned for type WhoamiOK
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 /user/create Identity createUser
Create 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 CreateUserConflict ¶
CreateUserConflict Create User Failed, cause user exist
swagger:response createUserConflict
func NewCreateUserConflict ¶
func NewCreateUserConflict() *CreateUserConflict
NewCreateUserConflict creates CreateUserConflict with default headers values
func (*CreateUserConflict) SetPayload ¶
func (o *CreateUserConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the create user conflict response
func (*CreateUserConflict) WithPayload ¶
func (o *CreateUserConflict) WithPayload(payload *models.Error) *CreateUserConflict
WithPayload adds the payload to the create user conflict response
func (*CreateUserConflict) WriteResponse ¶
func (o *CreateUserConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUserCreated ¶
CreateUserCreated Create User Success
swagger:response createUserCreated
func NewCreateUserCreated ¶
func NewCreateUserCreated() *CreateUserCreated
NewCreateUserCreated creates CreateUserCreated with default headers values
func (*CreateUserCreated) SetPayload ¶
func (o *CreateUserCreated) SetPayload(payload *models.Error)
SetPayload sets the payload to the create user created response
func (*CreateUserCreated) WithPayload ¶
func (o *CreateUserCreated) WithPayload(payload *models.Error) *CreateUserCreated
WithPayload adds the payload to the create user created response
func (*CreateUserCreated) WriteResponse ¶
func (o *CreateUserCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUserHandler ¶
type CreateUserHandler interface {
Handle(CreateUserParams) middleware.Responder
}
CreateUserHandler interface for that can handle valid create user params
type CreateUserHandlerFunc ¶
type CreateUserHandlerFunc func(CreateUserParams) middleware.Responder
CreateUserHandlerFunc turns a function with the right signature into a create user handler
func (CreateUserHandlerFunc) Handle ¶
func (fn CreateUserHandlerFunc) Handle(params CreateUserParams) middleware.Responder
Handle executing the request and returning a response
type CreateUserInternalServerError ¶
type CreateUserInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateUserInternalServerError Server Error
swagger:response createUserInternalServerError
func NewCreateUserInternalServerError ¶
func NewCreateUserInternalServerError() *CreateUserInternalServerError
NewCreateUserInternalServerError creates CreateUserInternalServerError with default headers values
func (*CreateUserInternalServerError) SetPayload ¶
func (o *CreateUserInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the create user internal server error response
func (*CreateUserInternalServerError) WithPayload ¶
func (o *CreateUserInternalServerError) WithPayload(payload *models.Error) *CreateUserInternalServerError
WithPayload adds the payload to the create user internal server error response
func (*CreateUserInternalServerError) WriteResponse ¶
func (o *CreateUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUserParams ¶
type CreateUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.UserInfo }
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
There are no default values defined in the spec.
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.
To ensure default values, the struct must have been initialized with NewCreateUserParams() beforehand.
type CreateUserURL ¶
type CreateUserURL struct {
// contains filtered or unexported fields
}
CreateUserURL generates an URL for the create user operation
func (*CreateUserURL) Build ¶
func (o *CreateUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateUserURL) BuildFull ¶
func (o *CreateUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateUserURL) SetBasePath ¶
func (o *CreateUserURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*CreateUserURL) String ¶
func (o *CreateUserURL) String() string
String returns the string representation of the path with query string
func (*CreateUserURL) StringFull ¶
func (o *CreateUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateUserURL) WithBasePath ¶
func (o *CreateUserURL) WithBasePath(bp string) *CreateUserURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetUser ¶
type GetUser struct { Context *middleware.Context Handler GetUserHandler }
GetUser swagger:route GET /user/get Identity getUser
Get User Info by id
func NewGetUser ¶
func NewGetUser(ctx *middleware.Context, handler GetUserHandler) *GetUser
NewGetUser creates a new http.Handler for the get user operation
type GetUserHandler ¶
type GetUserHandler interface {
Handle(GetUserParams) middleware.Responder
}
GetUserHandler interface for that can handle valid get user params
type GetUserHandlerFunc ¶
type GetUserHandlerFunc func(GetUserParams) middleware.Responder
GetUserHandlerFunc turns a function with the right signature into a get user handler
func (GetUserHandlerFunc) Handle ¶
func (fn GetUserHandlerFunc) Handle(params GetUserParams) middleware.Responder
Handle executing the request and returning a response
type GetUserInternalServerError ¶
type GetUserInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetUserInternalServerError Server Error
swagger:response getUserInternalServerError
func NewGetUserInternalServerError ¶
func NewGetUserInternalServerError() *GetUserInternalServerError
NewGetUserInternalServerError creates GetUserInternalServerError with default headers values
func (*GetUserInternalServerError) SetPayload ¶
func (o *GetUserInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get user internal server error response
func (*GetUserInternalServerError) WithPayload ¶
func (o *GetUserInternalServerError) WithPayload(payload *models.Error) *GetUserInternalServerError
WithPayload adds the payload to the get user internal server error response
func (*GetUserInternalServerError) WriteResponse ¶
func (o *GetUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserOK ¶
GetUserOK Get User Success
swagger:response getUserOK
func NewGetUserOK ¶
func NewGetUserOK() *GetUserOK
NewGetUserOK creates GetUserOK with default headers values
func (*GetUserOK) SetPayload ¶
SetPayload sets the payload to the get user o k response
func (*GetUserOK) WithPayload ¶
WithPayload adds the payload to the get user o k response
func (*GetUserOK) WriteResponse ¶
func (o *GetUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserParams ¶
type GetUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User id Required: true In: query */ ID int64 }
GetUserParams contains all the bound params for the get user operation typically these are obtained from a http.Request
swagger:parameters GetUser
func NewGetUserParams ¶
func NewGetUserParams() GetUserParams
NewGetUserParams creates a new GetUserParams object
There are no default values defined in the spec.
func (*GetUserParams) BindRequest ¶
func (o *GetUserParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetUserParams() beforehand.
type GetUserURL ¶
type GetUserURL struct { ID int64 // contains filtered or unexported fields }
GetUserURL generates an URL for the get user operation
func (*GetUserURL) Build ¶
func (o *GetUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUserURL) BuildFull ¶
func (o *GetUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUserURL) SetBasePath ¶
func (o *GetUserURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetUserURL) String ¶
func (o *GetUserURL) String() string
String returns the string representation of the path with query string
func (*GetUserURL) StringFull ¶
func (o *GetUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUserURL) WithBasePath ¶
func (o *GetUserURL) WithBasePath(bp string) *GetUserURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type Login ¶
type Login struct { Context *middleware.Context Handler LoginHandler }
Login swagger:route POST /user/login Identity login
User Login
func NewLogin ¶
func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login
NewLogin creates a new http.Handler for the login operation
type LoginHandler ¶
type LoginHandler interface {
Handle(LoginParams) middleware.Responder
}
LoginHandler interface for that can handle valid login params
type LoginHandlerFunc ¶
type LoginHandlerFunc func(LoginParams) middleware.Responder
LoginHandlerFunc turns a function with the right signature into a login handler
func (LoginHandlerFunc) Handle ¶
func (fn LoginHandlerFunc) Handle(params LoginParams) middleware.Responder
Handle executing the request and returning a response
type LoginInternalServerError ¶
type LoginInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
LoginInternalServerError Server Error
swagger:response loginInternalServerError
func NewLoginInternalServerError ¶
func NewLoginInternalServerError() *LoginInternalServerError
NewLoginInternalServerError creates LoginInternalServerError with default headers values
func (*LoginInternalServerError) SetPayload ¶
func (o *LoginInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the login internal server error response
func (*LoginInternalServerError) WithPayload ¶
func (o *LoginInternalServerError) WithPayload(payload *models.Error) *LoginInternalServerError
WithPayload adds the payload to the login internal server error response
func (*LoginInternalServerError) WriteResponse ¶
func (o *LoginInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginOK ¶
type LoginOK struct { /*Set-Cookie, set token */ SetCookie string `json:"Set-Cookie"` /* In: Body */ Payload *models.UserInfo `json:"body,omitempty"` }
LoginOK Login Success, return user info.
swagger:response loginOK
func (*LoginOK) SetPayload ¶
SetPayload sets the payload to the login o k response
func (*LoginOK) SetSetCookie ¶
SetSetCookie sets the setCookie to the login o k response
func (*LoginOK) WithPayload ¶
WithPayload adds the payload to the login o k response
func (*LoginOK) WithSetCookie ¶
WithSetCookie adds the setCookie to the login o k response
func (*LoginOK) WriteResponse ¶
func (o *LoginOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginParams ¶
type LoginParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.UserInfo }
LoginParams contains all the bound params for the login operation typically these are obtained from a http.Request
swagger:parameters Login
func NewLoginParams ¶
func NewLoginParams() LoginParams
NewLoginParams creates a new LoginParams object
There are no default values defined in the spec.
func (*LoginParams) BindRequest ¶
func (o *LoginParams) 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 NewLoginParams() beforehand.
type LoginURL ¶
type LoginURL struct {
// contains filtered or unexported fields
}
LoginURL generates an URL for the login operation
func (*LoginURL) SetBasePath ¶
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 (*LoginURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*LoginURL) WithBasePath ¶
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 LoginUnauthorized ¶
LoginUnauthorized Login Failed
swagger:response loginUnauthorized
func NewLoginUnauthorized ¶
func NewLoginUnauthorized() *LoginUnauthorized
NewLoginUnauthorized creates LoginUnauthorized with default headers values
func (*LoginUnauthorized) SetPayload ¶
func (o *LoginUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the login unauthorized response
func (*LoginUnauthorized) WithPayload ¶
func (o *LoginUnauthorized) WithPayload(payload *models.Error) *LoginUnauthorized
WithPayload adds the payload to the login unauthorized response
func (*LoginUnauthorized) WriteResponse ¶
func (o *LoginUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Logout ¶
type Logout struct { Context *middleware.Context Handler LogoutHandler }
Logout swagger:route GET /user/logout Identity logout
Logout
func NewLogout ¶
func NewLogout(ctx *middleware.Context, handler LogoutHandler) *Logout
NewLogout creates a new http.Handler for the logout operation
type LogoutHandler ¶
type LogoutHandler interface {
Handle(LogoutParams, *models.AuthInfo) middleware.Responder
}
LogoutHandler interface for that can handle valid logout params
type LogoutHandlerFunc ¶
type LogoutHandlerFunc func(LogoutParams, *models.AuthInfo) middleware.Responder
LogoutHandlerFunc turns a function with the right signature into a logout handler
func (LogoutHandlerFunc) Handle ¶
func (fn LogoutHandlerFunc) Handle(params LogoutParams, principal *models.AuthInfo) middleware.Responder
Handle executing the request and returning a response
type LogoutInternalServerError ¶
type LogoutInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
LogoutInternalServerError Server Error
swagger:response logoutInternalServerError
func NewLogoutInternalServerError ¶
func NewLogoutInternalServerError() *LogoutInternalServerError
NewLogoutInternalServerError creates LogoutInternalServerError with default headers values
func (*LogoutInternalServerError) SetPayload ¶
func (o *LogoutInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the logout internal server error response
func (*LogoutInternalServerError) WithPayload ¶
func (o *LogoutInternalServerError) WithPayload(payload *models.Error) *LogoutInternalServerError
WithPayload adds the payload to the logout internal server error response
func (*LogoutInternalServerError) WriteResponse ¶
func (o *LogoutInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LogoutOK ¶
type LogoutOK struct { }
LogoutOK Logout Success
swagger:response logoutOK
func NewLogoutOK ¶
func NewLogoutOK() *LogoutOK
NewLogoutOK creates LogoutOK with default headers values
func (*LogoutOK) WriteResponse ¶
func (o *LogoutOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LogoutParams ¶
LogoutParams contains all the bound params for the logout operation typically these are obtained from a http.Request
swagger:parameters Logout
func NewLogoutParams ¶
func NewLogoutParams() LogoutParams
NewLogoutParams creates a new LogoutParams object
There are no default values defined in the spec.
func (*LogoutParams) BindRequest ¶
func (o *LogoutParams) 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 NewLogoutParams() beforehand.
type LogoutURL ¶
type LogoutURL struct {
// contains filtered or unexported fields
}
LogoutURL generates an URL for the logout operation
func (*LogoutURL) SetBasePath ¶
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 (*LogoutURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*LogoutURL) WithBasePath ¶
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 LogoutUnauthorized ¶
LogoutUnauthorized Logout Failed, no login
swagger:response logoutUnauthorized
func NewLogoutUnauthorized ¶
func NewLogoutUnauthorized() *LogoutUnauthorized
NewLogoutUnauthorized creates LogoutUnauthorized with default headers values
func (*LogoutUnauthorized) SetPayload ¶
func (o *LogoutUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the logout unauthorized response
func (*LogoutUnauthorized) WithPayload ¶
func (o *LogoutUnauthorized) WithPayload(payload *models.Error) *LogoutUnauthorized
WithPayload adds the payload to the logout unauthorized response
func (*LogoutUnauthorized) WriteResponse ¶
func (o *LogoutUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Whoami ¶
type Whoami struct { Context *middleware.Context Handler WhoamiHandler }
Whoami swagger:route GET /whoami Identity whoami
Get Current User's Info
func NewWhoami ¶
func NewWhoami(ctx *middleware.Context, handler WhoamiHandler) *Whoami
NewWhoami creates a new http.Handler for the whoami operation
type WhoamiHandler ¶
type WhoamiHandler interface {
Handle(WhoamiParams, *models.AuthInfo) middleware.Responder
}
WhoamiHandler interface for that can handle valid whoami params
type WhoamiHandlerFunc ¶
type WhoamiHandlerFunc func(WhoamiParams, *models.AuthInfo) middleware.Responder
WhoamiHandlerFunc turns a function with the right signature into a whoami handler
func (WhoamiHandlerFunc) Handle ¶
func (fn WhoamiHandlerFunc) Handle(params WhoamiParams, principal *models.AuthInfo) middleware.Responder
Handle executing the request and returning a response
type WhoamiOK ¶
WhoamiOK Get Current User's Info Success
swagger:response whoamiOK
func NewWhoamiOK ¶
func NewWhoamiOK() *WhoamiOK
NewWhoamiOK creates WhoamiOK with default headers values
func (*WhoamiOK) SetPayload ¶
SetPayload sets the payload to the whoami o k response
func (*WhoamiOK) WithPayload ¶
WithPayload adds the payload to the whoami o k response
func (*WhoamiOK) WriteResponse ¶
func (o *WhoamiOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WhoamiParams ¶
WhoamiParams contains all the bound params for the whoami operation typically these are obtained from a http.Request
swagger:parameters Whoami
func NewWhoamiParams ¶
func NewWhoamiParams() WhoamiParams
NewWhoamiParams creates a new WhoamiParams object
There are no default values defined in the spec.
func (*WhoamiParams) BindRequest ¶
func (o *WhoamiParams) 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 NewWhoamiParams() beforehand.
type WhoamiURL ¶
type WhoamiURL struct {
// contains filtered or unexported fields
}
WhoamiURL generates an URL for the whoami operation
func (*WhoamiURL) SetBasePath ¶
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 (*WhoamiURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*WhoamiURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files
¶
- create_user.go
- create_user_parameters.go
- create_user_responses.go
- create_user_urlbuilder.go
- get_user.go
- get_user_parameters.go
- get_user_responses.go
- get_user_urlbuilder.go
- login.go
- login_parameters.go
- login_responses.go
- login_urlbuilder.go
- logout.go
- logout_parameters.go
- logout_responses.go
- logout_urlbuilder.go
- whoami.go
- whoami_parameters.go
- whoami_responses.go
- whoami_urlbuilder.go