Documentation ¶
Index ¶
- Constants
- type GetLoggedInAdminUser
- type GetLoggedInAdminUserBadRequest
- type GetLoggedInAdminUserHandler
- type GetLoggedInAdminUserHandlerFunc
- type GetLoggedInAdminUserInternalServerError
- type GetLoggedInAdminUserNotFound
- type GetLoggedInAdminUserOK
- type GetLoggedInAdminUserParams
- type GetLoggedInAdminUserURL
- func (o *GetLoggedInAdminUserURL) Build() (*url.URL, error)
- func (o *GetLoggedInAdminUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetLoggedInAdminUserURL) Must(u *url.URL, err error) *url.URL
- func (o *GetLoggedInAdminUserURL) SetBasePath(bp string)
- func (o *GetLoggedInAdminUserURL) String() string
- func (o *GetLoggedInAdminUserURL) StringFull(scheme, host string) string
- func (o *GetLoggedInAdminUserURL) WithBasePath(bp string) *GetLoggedInAdminUserURL
- type GetLoggedInAdminUserUnauthorized
Constants ¶
const GetLoggedInAdminUserBadRequestCode int = 400
GetLoggedInAdminUserBadRequestCode is the HTTP code returned for type GetLoggedInAdminUserBadRequest
const GetLoggedInAdminUserInternalServerErrorCode int = 500
GetLoggedInAdminUserInternalServerErrorCode is the HTTP code returned for type GetLoggedInAdminUserInternalServerError
const GetLoggedInAdminUserNotFoundCode int = 404
GetLoggedInAdminUserNotFoundCode is the HTTP code returned for type GetLoggedInAdminUserNotFound
const GetLoggedInAdminUserOKCode int = 200
GetLoggedInAdminUserOKCode is the HTTP code returned for type GetLoggedInAdminUserOK
GetLoggedInAdminUserUnauthorizedCode is the HTTP code returned for type GetLoggedInAdminUserUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetLoggedInAdminUser ¶
type GetLoggedInAdminUser struct { Context *middleware.Context Handler GetLoggedInAdminUserHandler }
GetLoggedInAdminUser swagger:route GET /user User getLoggedInAdminUser
Gets the data about the currently signed in admin user ¶
Returns the admin user info for the currently logged in user
func NewGetLoggedInAdminUser ¶
func NewGetLoggedInAdminUser(ctx *middleware.Context, handler GetLoggedInAdminUserHandler) *GetLoggedInAdminUser
NewGetLoggedInAdminUser creates a new http.Handler for the get logged in admin user operation
func (*GetLoggedInAdminUser) ServeHTTP ¶
func (o *GetLoggedInAdminUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetLoggedInAdminUserBadRequest ¶
type GetLoggedInAdminUserBadRequest struct { }
GetLoggedInAdminUserBadRequest invalid request
swagger:response getLoggedInAdminUserBadRequest
func NewGetLoggedInAdminUserBadRequest ¶
func NewGetLoggedInAdminUserBadRequest() *GetLoggedInAdminUserBadRequest
NewGetLoggedInAdminUserBadRequest creates GetLoggedInAdminUserBadRequest with default headers values
func (*GetLoggedInAdminUserBadRequest) WriteResponse ¶
func (o *GetLoggedInAdminUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLoggedInAdminUserHandler ¶
type GetLoggedInAdminUserHandler interface {
Handle(GetLoggedInAdminUserParams) middleware.Responder
}
GetLoggedInAdminUserHandler interface for that can handle valid get logged in admin user params
type GetLoggedInAdminUserHandlerFunc ¶
type GetLoggedInAdminUserHandlerFunc func(GetLoggedInAdminUserParams) middleware.Responder
GetLoggedInAdminUserHandlerFunc turns a function with the right signature into a get logged in admin user handler
func (GetLoggedInAdminUserHandlerFunc) Handle ¶
func (fn GetLoggedInAdminUserHandlerFunc) Handle(params GetLoggedInAdminUserParams) middleware.Responder
Handle executing the request and returning a response
type GetLoggedInAdminUserInternalServerError ¶
type GetLoggedInAdminUserInternalServerError struct { }
GetLoggedInAdminUserInternalServerError server error
swagger:response getLoggedInAdminUserInternalServerError
func NewGetLoggedInAdminUserInternalServerError ¶
func NewGetLoggedInAdminUserInternalServerError() *GetLoggedInAdminUserInternalServerError
NewGetLoggedInAdminUserInternalServerError creates GetLoggedInAdminUserInternalServerError with default headers values
func (*GetLoggedInAdminUserInternalServerError) WriteResponse ¶
func (o *GetLoggedInAdminUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLoggedInAdminUserNotFound ¶
type GetLoggedInAdminUserNotFound struct { }
GetLoggedInAdminUserNotFound Admin User not found
swagger:response getLoggedInAdminUserNotFound
func NewGetLoggedInAdminUserNotFound ¶
func NewGetLoggedInAdminUserNotFound() *GetLoggedInAdminUserNotFound
NewGetLoggedInAdminUserNotFound creates GetLoggedInAdminUserNotFound with default headers values
func (*GetLoggedInAdminUserNotFound) WriteResponse ¶
func (o *GetLoggedInAdminUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLoggedInAdminUserOK ¶
type GetLoggedInAdminUserOK struct { /* In: Body */ Payload *adminmessages.AdminUser `json:"body,omitempty"` }
GetLoggedInAdminUserOK success
swagger:response getLoggedInAdminUserOK
func NewGetLoggedInAdminUserOK ¶
func NewGetLoggedInAdminUserOK() *GetLoggedInAdminUserOK
NewGetLoggedInAdminUserOK creates GetLoggedInAdminUserOK with default headers values
func (*GetLoggedInAdminUserOK) SetPayload ¶
func (o *GetLoggedInAdminUserOK) SetPayload(payload *adminmessages.AdminUser)
SetPayload sets the payload to the get logged in admin user o k response
func (*GetLoggedInAdminUserOK) WithPayload ¶
func (o *GetLoggedInAdminUserOK) WithPayload(payload *adminmessages.AdminUser) *GetLoggedInAdminUserOK
WithPayload adds the payload to the get logged in admin user o k response
func (*GetLoggedInAdminUserOK) WriteResponse ¶
func (o *GetLoggedInAdminUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLoggedInAdminUserParams ¶
type GetLoggedInAdminUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
GetLoggedInAdminUserParams contains all the bound params for the get logged in admin user operation typically these are obtained from a http.Request
swagger:parameters getLoggedInAdminUser
func NewGetLoggedInAdminUserParams ¶
func NewGetLoggedInAdminUserParams() GetLoggedInAdminUserParams
NewGetLoggedInAdminUserParams creates a new GetLoggedInAdminUserParams object
There are no default values defined in the spec.
func (*GetLoggedInAdminUserParams) BindRequest ¶
func (o *GetLoggedInAdminUserParams) 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 NewGetLoggedInAdminUserParams() beforehand.
type GetLoggedInAdminUserURL ¶
type GetLoggedInAdminUserURL struct {
// contains filtered or unexported fields
}
GetLoggedInAdminUserURL generates an URL for the get logged in admin user operation
func (*GetLoggedInAdminUserURL) Build ¶
func (o *GetLoggedInAdminUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetLoggedInAdminUserURL) BuildFull ¶
func (o *GetLoggedInAdminUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetLoggedInAdminUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetLoggedInAdminUserURL) SetBasePath ¶
func (o *GetLoggedInAdminUserURL) 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 (*GetLoggedInAdminUserURL) String ¶
func (o *GetLoggedInAdminUserURL) String() string
String returns the string representation of the path with query string
func (*GetLoggedInAdminUserURL) StringFull ¶
func (o *GetLoggedInAdminUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetLoggedInAdminUserURL) WithBasePath ¶
func (o *GetLoggedInAdminUserURL) WithBasePath(bp string) *GetLoggedInAdminUserURL
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 GetLoggedInAdminUserUnauthorized ¶
type GetLoggedInAdminUserUnauthorized struct { }
GetLoggedInAdminUserUnauthorized request requires user authentication
swagger:response getLoggedInAdminUserUnauthorized
func NewGetLoggedInAdminUserUnauthorized ¶
func NewGetLoggedInAdminUserUnauthorized() *GetLoggedInAdminUserUnauthorized
NewGetLoggedInAdminUserUnauthorized creates GetLoggedInAdminUserUnauthorized with default headers values
func (*GetLoggedInAdminUserUnauthorized) WriteResponse ¶
func (o *GetLoggedInAdminUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client