Documentation
¶
Index ¶
- Constants
- type PostLogin
- type PostLoginForbidden
- type PostLoginHandler
- type PostLoginHandlerFunc
- type PostLoginInternalServerError
- type PostLoginOK
- type PostLoginParams
- type PostLoginURL
- func (o *PostLoginURL) Build() (*url.URL, error)
- func (o *PostLoginURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostLoginURL) Must(u *url.URL, err error) *url.URL
- func (o *PostLoginURL) SetBasePath(bp string)
- func (o *PostLoginURL) String() string
- func (o *PostLoginURL) StringFull(scheme, host string) string
- func (o *PostLoginURL) WithBasePath(bp string) *PostLoginURL
- type PostRegister
- type PostRegisterConflict
- type PostRegisterCreated
- type PostRegisterHandler
- type PostRegisterHandlerFunc
- type PostRegisterInternalServerError
- type PostRegisterParams
- type PostRegisterURL
- func (o *PostRegisterURL) Build() (*url.URL, error)
- func (o *PostRegisterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostRegisterURL) Must(u *url.URL, err error) *url.URL
- func (o *PostRegisterURL) SetBasePath(bp string)
- func (o *PostRegisterURL) String() string
- func (o *PostRegisterURL) StringFull(scheme, host string) string
- func (o *PostRegisterURL) WithBasePath(bp string) *PostRegisterURL
Constants ¶
const PostLoginForbiddenCode int = 403
PostLoginForbiddenCode is the HTTP code returned for type PostLoginForbidden
const PostLoginInternalServerErrorCode int = 500
PostLoginInternalServerErrorCode is the HTTP code returned for type PostLoginInternalServerError
const PostLoginOKCode int = 200
PostLoginOKCode is the HTTP code returned for type PostLoginOK
const PostRegisterConflictCode int = 409
PostRegisterConflictCode is the HTTP code returned for type PostRegisterConflict
const PostRegisterCreatedCode int = 201
PostRegisterCreatedCode is the HTTP code returned for type PostRegisterCreated
const PostRegisterInternalServerErrorCode int = 500
PostRegisterInternalServerErrorCode is the HTTP code returned for type PostRegisterInternalServerError
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostLogin ¶
type PostLogin struct { Context *middleware.Context Handler PostLoginHandler }
PostLogin swagger:route POST /login auth postLogin
Login ¶
Returns a JWT token
func NewPostLogin ¶
func NewPostLogin(ctx *middleware.Context, handler PostLoginHandler) *PostLogin
NewPostLogin creates a new http.Handler for the post login operation
type PostLoginForbidden ¶
PostLoginForbidden forbidden
swagger:response postLoginForbidden
func NewPostLoginForbidden ¶
func NewPostLoginForbidden() *PostLoginForbidden
NewPostLoginForbidden creates PostLoginForbidden with default headers values
func (*PostLoginForbidden) SetPayload ¶
func (o *PostLoginForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the post login forbidden response
func (*PostLoginForbidden) WithPayload ¶
func (o *PostLoginForbidden) WithPayload(payload *models.Error) *PostLoginForbidden
WithPayload adds the payload to the post login forbidden response
func (*PostLoginForbidden) WriteResponse ¶
func (o *PostLoginForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostLoginHandler ¶
type PostLoginHandler interface {
Handle(PostLoginParams) middleware.Responder
}
PostLoginHandler interface for that can handle valid post login params
type PostLoginHandlerFunc ¶
type PostLoginHandlerFunc func(PostLoginParams) middleware.Responder
PostLoginHandlerFunc turns a function with the right signature into a post login handler
func (PostLoginHandlerFunc) Handle ¶
func (fn PostLoginHandlerFunc) Handle(params PostLoginParams) middleware.Responder
Handle executing the request and returning a response
type PostLoginInternalServerError ¶
type PostLoginInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostLoginInternalServerError internal server error
swagger:response postLoginInternalServerError
func NewPostLoginInternalServerError ¶
func NewPostLoginInternalServerError() *PostLoginInternalServerError
NewPostLoginInternalServerError creates PostLoginInternalServerError with default headers values
func (*PostLoginInternalServerError) SetPayload ¶
func (o *PostLoginInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the post login internal server error response
func (*PostLoginInternalServerError) WithPayload ¶
func (o *PostLoginInternalServerError) WithPayload(payload *models.Error) *PostLoginInternalServerError
WithPayload adds the payload to the post login internal server error response
func (*PostLoginInternalServerError) WriteResponse ¶
func (o *PostLoginInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostLoginOK ¶
PostLoginOK successful operation
swagger:response postLoginOK
func NewPostLoginOK ¶
func NewPostLoginOK() *PostLoginOK
NewPostLoginOK creates PostLoginOK with default headers values
func (*PostLoginOK) SetPayload ¶
func (o *PostLoginOK) SetPayload(payload *models.AuthToken)
SetPayload sets the payload to the post login o k response
func (*PostLoginOK) WithPayload ¶
func (o *PostLoginOK) WithPayload(payload *models.AuthToken) *PostLoginOK
WithPayload adds the payload to the post login o k response
func (*PostLoginOK) WriteResponse ¶
func (o *PostLoginOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostLoginParams ¶
type PostLoginParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Credentials Required: true In: body */ Body *models.AuthRequest }
PostLoginParams contains all the bound params for the post login operation typically these are obtained from a http.Request
swagger:parameters PostLogin
func NewPostLoginParams ¶
func NewPostLoginParams() PostLoginParams
NewPostLoginParams creates a new PostLoginParams object no default values defined in spec.
func (*PostLoginParams) BindRequest ¶
func (o *PostLoginParams) 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 NewPostLoginParams() beforehand.
type PostLoginURL ¶
type PostLoginURL struct {
// contains filtered or unexported fields
}
PostLoginURL generates an URL for the post login operation
func (*PostLoginURL) Build ¶
func (o *PostLoginURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostLoginURL) BuildFull ¶
func (o *PostLoginURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostLoginURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostLoginURL) SetBasePath ¶
func (o *PostLoginURL) 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 (*PostLoginURL) String ¶
func (o *PostLoginURL) String() string
String returns the string representation of the path with query string
func (*PostLoginURL) StringFull ¶
func (o *PostLoginURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostLoginURL) WithBasePath ¶
func (o *PostLoginURL) WithBasePath(bp string) *PostLoginURL
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 PostRegister ¶
type PostRegister struct { Context *middleware.Context Handler PostRegisterHandler }
PostRegister swagger:route POST /register auth postRegister
Register ¶
Registers a new user
func NewPostRegister ¶
func NewPostRegister(ctx *middleware.Context, handler PostRegisterHandler) *PostRegister
NewPostRegister creates a new http.Handler for the post register operation
func (*PostRegister) ServeHTTP ¶
func (o *PostRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostRegisterConflict ¶
PostRegisterConflict conflict
swagger:response postRegisterConflict
func NewPostRegisterConflict ¶
func NewPostRegisterConflict() *PostRegisterConflict
NewPostRegisterConflict creates PostRegisterConflict with default headers values
func (*PostRegisterConflict) SetPayload ¶
func (o *PostRegisterConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the post register conflict response
func (*PostRegisterConflict) WithPayload ¶
func (o *PostRegisterConflict) WithPayload(payload *models.Error) *PostRegisterConflict
WithPayload adds the payload to the post register conflict response
func (*PostRegisterConflict) WriteResponse ¶
func (o *PostRegisterConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRegisterCreated ¶
type PostRegisterCreated struct { }
PostRegisterCreated created
swagger:response postRegisterCreated
func NewPostRegisterCreated ¶
func NewPostRegisterCreated() *PostRegisterCreated
NewPostRegisterCreated creates PostRegisterCreated with default headers values
func (*PostRegisterCreated) WriteResponse ¶
func (o *PostRegisterCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRegisterHandler ¶
type PostRegisterHandler interface {
Handle(PostRegisterParams) middleware.Responder
}
PostRegisterHandler interface for that can handle valid post register params
type PostRegisterHandlerFunc ¶
type PostRegisterHandlerFunc func(PostRegisterParams) middleware.Responder
PostRegisterHandlerFunc turns a function with the right signature into a post register handler
func (PostRegisterHandlerFunc) Handle ¶
func (fn PostRegisterHandlerFunc) Handle(params PostRegisterParams) middleware.Responder
Handle executing the request and returning a response
type PostRegisterInternalServerError ¶
type PostRegisterInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostRegisterInternalServerError internal server error
swagger:response postRegisterInternalServerError
func NewPostRegisterInternalServerError ¶
func NewPostRegisterInternalServerError() *PostRegisterInternalServerError
NewPostRegisterInternalServerError creates PostRegisterInternalServerError with default headers values
func (*PostRegisterInternalServerError) SetPayload ¶
func (o *PostRegisterInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the post register internal server error response
func (*PostRegisterInternalServerError) WithPayload ¶
func (o *PostRegisterInternalServerError) WithPayload(payload *models.Error) *PostRegisterInternalServerError
WithPayload adds the payload to the post register internal server error response
func (*PostRegisterInternalServerError) WriteResponse ¶
func (o *PostRegisterInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRegisterParams ¶
type PostRegisterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Credentials Required: true In: body */ Body *models.AuthRequest }
PostRegisterParams contains all the bound params for the post register operation typically these are obtained from a http.Request
swagger:parameters PostRegister
func NewPostRegisterParams ¶
func NewPostRegisterParams() PostRegisterParams
NewPostRegisterParams creates a new PostRegisterParams object no default values defined in spec.
func (*PostRegisterParams) BindRequest ¶
func (o *PostRegisterParams) 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 NewPostRegisterParams() beforehand.
type PostRegisterURL ¶
type PostRegisterURL struct {
// contains filtered or unexported fields
}
PostRegisterURL generates an URL for the post register operation
func (*PostRegisterURL) Build ¶
func (o *PostRegisterURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostRegisterURL) BuildFull ¶
func (o *PostRegisterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostRegisterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostRegisterURL) SetBasePath ¶
func (o *PostRegisterURL) 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 (*PostRegisterURL) String ¶
func (o *PostRegisterURL) String() string
String returns the string representation of the path with query string
func (*PostRegisterURL) StringFull ¶
func (o *PostRegisterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostRegisterURL) WithBasePath ¶
func (o *PostRegisterURL) WithBasePath(bp string) *PostRegisterURL
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