users

package
v0.0.0-...-c486877 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const IsLoggedInUserBadRequestCode int = 400

IsLoggedInUserBadRequestCode is the HTTP code returned for type IsLoggedInUserBadRequest

View Source
const IsLoggedInUserInternalServerErrorCode int = 500

IsLoggedInUserInternalServerErrorCode is the HTTP code returned for type IsLoggedInUserInternalServerError

View Source
const IsLoggedInUserOKCode int = 200

IsLoggedInUserOKCode is the HTTP code returned for type IsLoggedInUserOK

View Source
const ShowLoggedInUserBadRequestCode int = 400

ShowLoggedInUserBadRequestCode is the HTTP code returned for type ShowLoggedInUserBadRequest

View Source
const ShowLoggedInUserInternalServerErrorCode int = 500

ShowLoggedInUserInternalServerErrorCode is the HTTP code returned for type ShowLoggedInUserInternalServerError

View Source
const ShowLoggedInUserOKCode int = 200

ShowLoggedInUserOKCode is the HTTP code returned for type ShowLoggedInUserOK

View Source
const ShowLoggedInUserUnauthorizedCode int = 401

ShowLoggedInUserUnauthorizedCode is the HTTP code returned for type ShowLoggedInUserUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type IsLoggedInUser

type IsLoggedInUser struct {
	Context *middleware.Context
	Handler IsLoggedInUserHandler
}
IsLoggedInUser swagger:route GET /users/is_logged_in users isLoggedInUser

Returns boolean as to whether the user is logged in

Returns boolean as to whether the user is logged in

func NewIsLoggedInUser

func NewIsLoggedInUser(ctx *middleware.Context, handler IsLoggedInUserHandler) *IsLoggedInUser

NewIsLoggedInUser creates a new http.Handler for the is logged in user operation

func (*IsLoggedInUser) ServeHTTP

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

type IsLoggedInUserBadRequest

type IsLoggedInUserBadRequest struct {
}

IsLoggedInUserBadRequest invalid request

swagger:response isLoggedInUserBadRequest

func NewIsLoggedInUserBadRequest

func NewIsLoggedInUserBadRequest() *IsLoggedInUserBadRequest

NewIsLoggedInUserBadRequest creates IsLoggedInUserBadRequest with default headers values

func (*IsLoggedInUserBadRequest) WriteResponse

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

WriteResponse to the client

type IsLoggedInUserHandler

type IsLoggedInUserHandler interface {
	Handle(IsLoggedInUserParams) middleware.Responder
}

IsLoggedInUserHandler interface for that can handle valid is logged in user params

type IsLoggedInUserHandlerFunc

type IsLoggedInUserHandlerFunc func(IsLoggedInUserParams) middleware.Responder

IsLoggedInUserHandlerFunc turns a function with the right signature into a is logged in user handler

func (IsLoggedInUserHandlerFunc) Handle

Handle executing the request and returning a response

type IsLoggedInUserInternalServerError

type IsLoggedInUserInternalServerError struct {
}

IsLoggedInUserInternalServerError server error

swagger:response isLoggedInUserInternalServerError

func NewIsLoggedInUserInternalServerError

func NewIsLoggedInUserInternalServerError() *IsLoggedInUserInternalServerError

NewIsLoggedInUserInternalServerError creates IsLoggedInUserInternalServerError with default headers values

func (*IsLoggedInUserInternalServerError) WriteResponse

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

WriteResponse to the client

type IsLoggedInUserOK

type IsLoggedInUserOK struct {

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

IsLoggedInUserOK Currently logged in user

swagger:response isLoggedInUserOK

func NewIsLoggedInUserOK

func NewIsLoggedInUserOK() *IsLoggedInUserOK

NewIsLoggedInUserOK creates IsLoggedInUserOK with default headers values

func (*IsLoggedInUserOK) SetPayload

func (o *IsLoggedInUserOK) SetPayload(payload *IsLoggedInUserOKBody)

SetPayload sets the payload to the is logged in user o k response

func (*IsLoggedInUserOK) WithPayload

func (o *IsLoggedInUserOK) WithPayload(payload *IsLoggedInUserOKBody) *IsLoggedInUserOK

WithPayload adds the payload to the is logged in user o k response

func (*IsLoggedInUserOK) WriteResponse

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

WriteResponse to the client

type IsLoggedInUserOKBody

type IsLoggedInUserOKBody struct {

	// is logged in
	// Required: true
	IsLoggedIn *bool `json:"isLoggedIn"`
}

IsLoggedInUserOKBody is logged in user o k body

swagger:model IsLoggedInUserOKBody

func (*IsLoggedInUserOKBody) ContextValidate

func (o *IsLoggedInUserOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this is logged in user o k body based on context it is used

func (*IsLoggedInUserOKBody) MarshalBinary

func (o *IsLoggedInUserOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IsLoggedInUserOKBody) UnmarshalBinary

func (o *IsLoggedInUserOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IsLoggedInUserOKBody) Validate

func (o *IsLoggedInUserOKBody) Validate(formats strfmt.Registry) error

Validate validates this is logged in user o k body

type IsLoggedInUserParams

type IsLoggedInUserParams struct {

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

IsLoggedInUserParams contains all the bound params for the is logged in user operation typically these are obtained from a http.Request

swagger:parameters isLoggedInUser

func NewIsLoggedInUserParams

func NewIsLoggedInUserParams() IsLoggedInUserParams

NewIsLoggedInUserParams creates a new IsLoggedInUserParams object

There are no default values defined in the spec.

func (*IsLoggedInUserParams) BindRequest

func (o *IsLoggedInUserParams) 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 NewIsLoggedInUserParams() beforehand.

type IsLoggedInUserURL

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

IsLoggedInUserURL generates an URL for the is logged in user operation

func (*IsLoggedInUserURL) Build

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

Build a url path and query string

func (*IsLoggedInUserURL) BuildFull

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

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

func (*IsLoggedInUserURL) Must

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

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

func (*IsLoggedInUserURL) SetBasePath

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

func (o *IsLoggedInUserURL) String() string

String returns the string representation of the path with query string

func (*IsLoggedInUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*IsLoggedInUserURL) WithBasePath

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

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 ShowLoggedInUser

type ShowLoggedInUser struct {
	Context *middleware.Context
	Handler ShowLoggedInUserHandler
}
ShowLoggedInUser swagger:route GET /users/logged_in users showLoggedInUser

Returns the user info for the currently logged in user

Returns the user info for the currently logged in user

func NewShowLoggedInUser

func NewShowLoggedInUser(ctx *middleware.Context, handler ShowLoggedInUserHandler) *ShowLoggedInUser

NewShowLoggedInUser creates a new http.Handler for the show logged in user operation

func (*ShowLoggedInUser) ServeHTTP

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

type ShowLoggedInUserBadRequest

type ShowLoggedInUserBadRequest struct {
}

ShowLoggedInUserBadRequest invalid request

swagger:response showLoggedInUserBadRequest

func NewShowLoggedInUserBadRequest

func NewShowLoggedInUserBadRequest() *ShowLoggedInUserBadRequest

NewShowLoggedInUserBadRequest creates ShowLoggedInUserBadRequest with default headers values

func (*ShowLoggedInUserBadRequest) WriteResponse

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

WriteResponse to the client

type ShowLoggedInUserHandler

type ShowLoggedInUserHandler interface {
	Handle(ShowLoggedInUserParams) middleware.Responder
}

ShowLoggedInUserHandler interface for that can handle valid show logged in user params

type ShowLoggedInUserHandlerFunc

type ShowLoggedInUserHandlerFunc func(ShowLoggedInUserParams) middleware.Responder

ShowLoggedInUserHandlerFunc turns a function with the right signature into a show logged in user handler

func (ShowLoggedInUserHandlerFunc) Handle

Handle executing the request and returning a response

type ShowLoggedInUserInternalServerError

type ShowLoggedInUserInternalServerError struct {
}

ShowLoggedInUserInternalServerError server error

swagger:response showLoggedInUserInternalServerError

func NewShowLoggedInUserInternalServerError

func NewShowLoggedInUserInternalServerError() *ShowLoggedInUserInternalServerError

NewShowLoggedInUserInternalServerError creates ShowLoggedInUserInternalServerError with default headers values

func (*ShowLoggedInUserInternalServerError) WriteResponse

WriteResponse to the client

type ShowLoggedInUserOK

type ShowLoggedInUserOK struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.LoggedInUserPayload `json:"body,omitempty"`
}

ShowLoggedInUserOK Currently logged in user

swagger:response showLoggedInUserOK

func NewShowLoggedInUserOK

func NewShowLoggedInUserOK() *ShowLoggedInUserOK

NewShowLoggedInUserOK creates ShowLoggedInUserOK with default headers values

func (*ShowLoggedInUserOK) SetPayload

SetPayload sets the payload to the show logged in user o k response

func (*ShowLoggedInUserOK) WithPayload

WithPayload adds the payload to the show logged in user o k response

func (*ShowLoggedInUserOK) WriteResponse

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

WriteResponse to the client

type ShowLoggedInUserParams

type ShowLoggedInUserParams struct {

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

ShowLoggedInUserParams contains all the bound params for the show logged in user operation typically these are obtained from a http.Request

swagger:parameters showLoggedInUser

func NewShowLoggedInUserParams

func NewShowLoggedInUserParams() ShowLoggedInUserParams

NewShowLoggedInUserParams creates a new ShowLoggedInUserParams object

There are no default values defined in the spec.

func (*ShowLoggedInUserParams) BindRequest

func (o *ShowLoggedInUserParams) 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 NewShowLoggedInUserParams() beforehand.

type ShowLoggedInUserURL

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

ShowLoggedInUserURL generates an URL for the show logged in user operation

func (*ShowLoggedInUserURL) Build

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

Build a url path and query string

func (*ShowLoggedInUserURL) BuildFull

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

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

func (*ShowLoggedInUserURL) Must

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

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

func (*ShowLoggedInUserURL) SetBasePath

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

func (o *ShowLoggedInUserURL) String() string

String returns the string representation of the path with query string

func (*ShowLoggedInUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ShowLoggedInUserURL) WithBasePath

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

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 ShowLoggedInUserUnauthorized

type ShowLoggedInUserUnauthorized struct {
}

ShowLoggedInUserUnauthorized request requires user authentication

swagger:response showLoggedInUserUnauthorized

func NewShowLoggedInUserUnauthorized

func NewShowLoggedInUserUnauthorized() *ShowLoggedInUserUnauthorized

NewShowLoggedInUserUnauthorized creates ShowLoggedInUserUnauthorized with default headers values

func (*ShowLoggedInUserUnauthorized) WriteResponse

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