Documentation ¶
Index ¶
- Constants
- type IsLoggedInUser
- type IsLoggedInUserBadRequest
- type IsLoggedInUserHandler
- type IsLoggedInUserHandlerFunc
- type IsLoggedInUserInternalServerError
- type IsLoggedInUserOK
- type IsLoggedInUserOKBody
- type IsLoggedInUserParams
- type IsLoggedInUserURL
- func (o *IsLoggedInUserURL) Build() (*url.URL, error)
- func (o *IsLoggedInUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *IsLoggedInUserURL) Must(u *url.URL, err error) *url.URL
- func (o *IsLoggedInUserURL) SetBasePath(bp string)
- func (o *IsLoggedInUserURL) String() string
- func (o *IsLoggedInUserURL) StringFull(scheme, host string) string
- func (o *IsLoggedInUserURL) WithBasePath(bp string) *IsLoggedInUserURL
- type ShowLoggedInUser
- type ShowLoggedInUserBadRequest
- type ShowLoggedInUserHandler
- type ShowLoggedInUserHandlerFunc
- type ShowLoggedInUserInternalServerError
- type ShowLoggedInUserOK
- type ShowLoggedInUserParams
- type ShowLoggedInUserURL
- func (o *ShowLoggedInUserURL) Build() (*url.URL, error)
- func (o *ShowLoggedInUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ShowLoggedInUserURL) Must(u *url.URL, err error) *url.URL
- func (o *ShowLoggedInUserURL) SetBasePath(bp string)
- func (o *ShowLoggedInUserURL) String() string
- func (o *ShowLoggedInUserURL) StringFull(scheme, host string) string
- func (o *ShowLoggedInUserURL) WithBasePath(bp string) *ShowLoggedInUserURL
- type ShowLoggedInUserUnauthorized
Constants ¶
const IsLoggedInUserBadRequestCode int = 400
IsLoggedInUserBadRequestCode is the HTTP code returned for type IsLoggedInUserBadRequest
const IsLoggedInUserInternalServerErrorCode int = 500
IsLoggedInUserInternalServerErrorCode is the HTTP code returned for type IsLoggedInUserInternalServerError
const IsLoggedInUserOKCode int = 200
IsLoggedInUserOKCode is the HTTP code returned for type IsLoggedInUserOK
const ShowLoggedInUserBadRequestCode int = 400
ShowLoggedInUserBadRequestCode is the HTTP code returned for type ShowLoggedInUserBadRequest
const ShowLoggedInUserInternalServerErrorCode int = 500
ShowLoggedInUserInternalServerErrorCode is the HTTP code returned for type ShowLoggedInUserInternalServerError
const ShowLoggedInUserOKCode int = 200
ShowLoggedInUserOKCode is the HTTP code returned for type ShowLoggedInUserOK
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 ¶
func (fn IsLoggedInUserHandlerFunc) Handle(params IsLoggedInUserParams) middleware.Responder
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 ¶
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
type IsLoggedInUserParams ¶
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 ¶
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 ¶
func (fn ShowLoggedInUserHandlerFunc) Handle(params ShowLoggedInUserParams) middleware.Responder
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 ¶
func (o *ShowLoggedInUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *ShowLoggedInUserOK) SetPayload(payload *internalmessages.LoggedInUserPayload)
SetPayload sets the payload to the show logged in user o k response
func (*ShowLoggedInUserOK) WithPayload ¶
func (o *ShowLoggedInUserOK) WithPayload(payload *internalmessages.LoggedInUserPayload) *ShowLoggedInUserOK
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 ¶
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 ¶
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