identity

package
v0.0.0-...-acbd0ad Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateUserConflictCode int = 409

CreateUserConflictCode is the HTTP code returned for type CreateUserConflict

View Source
const CreateUserCreatedCode int = 201

CreateUserCreatedCode is the HTTP code returned for type CreateUserCreated

View Source
const CreateUserInternalServerErrorCode int = 500

CreateUserInternalServerErrorCode is the HTTP code returned for type CreateUserInternalServerError

View Source
const GetUserInternalServerErrorCode int = 500

GetUserInternalServerErrorCode is the HTTP code returned for type GetUserInternalServerError

View Source
const GetUserOKCode int = 200

GetUserOKCode is the HTTP code returned for type GetUserOK

View Source
const LoginInternalServerErrorCode int = 500

LoginInternalServerErrorCode is the HTTP code returned for type LoginInternalServerError

View Source
const LoginOKCode int = 200

LoginOKCode is the HTTP code returned for type LoginOK

View Source
const LoginUnauthorizedCode int = 401

LoginUnauthorizedCode is the HTTP code returned for type LoginUnauthorized

View Source
const LogoutInternalServerErrorCode int = 500

LogoutInternalServerErrorCode is the HTTP code returned for type LogoutInternalServerError

View Source
const LogoutOKCode int = 200

LogoutOKCode is the HTTP code returned for type LogoutOK

View Source
const LogoutUnauthorizedCode int = 401

LogoutUnauthorizedCode is the HTTP code returned for type LogoutUnauthorized

View Source
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

type CreateUserConflict struct {

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

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

type CreateUserCreated struct {

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

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

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

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

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

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

func (*GetUser) ServeHTTP

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

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

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

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

type GetUserOK struct {

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

GetUserOK Get User Success

swagger:response getUserOK

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates GetUserOK with default headers values

func (*GetUserOK) SetPayload

func (o *GetUserOK) SetPayload(payload *models.UserInfo)

SetPayload sets the payload to the get user o k response

func (*GetUserOK) WithPayload

func (o *GetUserOK) WithPayload(payload *models.UserInfo) *GetUserOK

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) Must

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

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

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

func (*Login) ServeHTTP

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

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

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

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 NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates LoginOK with default headers values

func (*LoginOK) SetPayload

func (o *LoginOK) SetPayload(payload *models.UserInfo)

SetPayload sets the payload to the login o k response

func (*LoginOK) SetSetCookie

func (o *LoginOK) SetSetCookie(setCookie string)

SetSetCookie sets the setCookie to the login o k response

func (*LoginOK) WithPayload

func (o *LoginOK) WithPayload(payload *models.UserInfo) *LoginOK

WithPayload adds the payload to the login o k response

func (*LoginOK) WithSetCookie

func (o *LoginOK) WithSetCookie(setCookie string) *LoginOK

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) Build

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

Build a url path and query string

func (*LoginURL) BuildFull

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

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

func (*LoginURL) Must

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

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

func (*LoginURL) SetBasePath

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

func (o *LoginURL) String() string

String returns the string representation of the path with query string

func (*LoginURL) StringFull

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

StringFull returns the string representation of a complete url

func (*LoginURL) WithBasePath

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

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

type LoginUnauthorized struct {

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

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

func (*Logout) ServeHTTP

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

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

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

type LogoutParams struct {

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

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) Build

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

Build a url path and query string

func (*LogoutURL) BuildFull

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

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

func (*LogoutURL) Must

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

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

func (*LogoutURL) SetBasePath

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

func (o *LogoutURL) String() string

String returns the string representation of the path with query string

func (*LogoutURL) StringFull

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

StringFull returns the string representation of a complete url

func (*LogoutURL) WithBasePath

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

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

type LogoutUnauthorized struct {

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

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

func (*Whoami) ServeHTTP

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

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

type WhoamiOK struct {

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

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

func (o *WhoamiOK) SetPayload(payload *models.UserInfo)

SetPayload sets the payload to the whoami o k response

func (*WhoamiOK) WithPayload

func (o *WhoamiOK) WithPayload(payload *models.UserInfo) *WhoamiOK

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

type WhoamiParams struct {

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

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) Build

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

Build a url path and query string

func (*WhoamiURL) BuildFull

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

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

func (*WhoamiURL) Must

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

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

func (*WhoamiURL) SetBasePath

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

func (o *WhoamiURL) String() string

String returns the string representation of the path with query string

func (*WhoamiURL) StringFull

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

StringFull returns the string representation of a complete url

func (*WhoamiURL) WithBasePath

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

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