user

package
v0.0.0-...-fdfe12d Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetLoggedInAdminUserBadRequestCode int = 400

GetLoggedInAdminUserBadRequestCode is the HTTP code returned for type GetLoggedInAdminUserBadRequest

View Source
const GetLoggedInAdminUserInternalServerErrorCode int = 500

GetLoggedInAdminUserInternalServerErrorCode is the HTTP code returned for type GetLoggedInAdminUserInternalServerError

View Source
const GetLoggedInAdminUserNotFoundCode int = 404

GetLoggedInAdminUserNotFoundCode is the HTTP code returned for type GetLoggedInAdminUserNotFound

View Source
const GetLoggedInAdminUserOKCode int = 200

GetLoggedInAdminUserOKCode is the HTTP code returned for type GetLoggedInAdminUserOK

View Source
const GetLoggedInAdminUserUnauthorizedCode int = 401

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

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

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

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

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

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

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

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

Jump to

Keyboard shortcuts

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