Documentation ¶
Index ¶
- Constants
- type Signin
- type SigninDefault
- func (o *SigninDefault) SetPayload(payload *models.Error)
- func (o *SigninDefault) SetStatusCode(code int)
- func (o *SigninDefault) WithPayload(payload *models.Error) *SigninDefault
- func (o *SigninDefault) WithStatusCode(code int) *SigninDefault
- func (o *SigninDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SigninHandler
- type SigninHandlerFunc
- type SigninOK
- type SigninParams
- type SigninURL
- func (o *SigninURL) Build() (*url.URL, error)
- func (o *SigninURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SigninURL) Must(u *url.URL, err error) *url.URL
- func (o *SigninURL) SetBasePath(bp string)
- func (o *SigninURL) String() string
- func (o *SigninURL) StringFull(scheme, host string) string
- func (o *SigninURL) WithBasePath(bp string) *SigninURL
- type Signup
- type SignupCreated
- type SignupDefault
- func (o *SignupDefault) SetPayload(payload *models.Error)
- func (o *SignupDefault) SetStatusCode(code int)
- func (o *SignupDefault) WithPayload(payload *models.Error) *SignupDefault
- func (o *SignupDefault) WithStatusCode(code int) *SignupDefault
- func (o *SignupDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SignupHandler
- type SignupHandlerFunc
- type SignupParams
- type SignupURL
- func (o *SignupURL) Build() (*url.URL, error)
- func (o *SignupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SignupURL) Must(u *url.URL, err error) *url.URL
- func (o *SignupURL) SetBasePath(bp string)
- func (o *SignupURL) String() string
- func (o *SignupURL) StringFull(scheme, host string) string
- func (o *SignupURL) WithBasePath(bp string) *SignupURL
Constants ¶
const SigninOKCode int = 200
SigninOKCode is the HTTP code returned for type SigninOK
const SignupCreatedCode int = 201
SignupCreatedCode is the HTTP code returned for type SignupCreated
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signin ¶
type Signin struct { Context *middleware.Context Handler SigninHandler }
Signin swagger:route POST /signin account signin
Signin signin API
func NewSignin ¶
func NewSignin(ctx *middleware.Context, handler SigninHandler) *Signin
NewSignin creates a new http.Handler for the signin operation
type SigninDefault ¶
type SigninDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
SigninDefault unexpected error
swagger:response signinDefault
func NewSigninDefault ¶
func NewSigninDefault(code int) *SigninDefault
NewSigninDefault creates SigninDefault with default headers values
func (*SigninDefault) SetPayload ¶
func (o *SigninDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the signin default response
func (*SigninDefault) SetStatusCode ¶
func (o *SigninDefault) SetStatusCode(code int)
SetStatusCode sets the status to the signin default response
func (*SigninDefault) WithPayload ¶
func (o *SigninDefault) WithPayload(payload *models.Error) *SigninDefault
WithPayload adds the payload to the signin default response
func (*SigninDefault) WithStatusCode ¶
func (o *SigninDefault) WithStatusCode(code int) *SigninDefault
WithStatusCode adds the status to the signin default response
func (*SigninDefault) WriteResponse ¶
func (o *SigninDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SigninHandler ¶
type SigninHandler interface {
Handle(SigninParams) middleware.Responder
}
SigninHandler interface for that can handle valid signin params
type SigninHandlerFunc ¶
type SigninHandlerFunc func(SigninParams) middleware.Responder
SigninHandlerFunc turns a function with the right signature into a signin handler
func (SigninHandlerFunc) Handle ¶
func (fn SigninHandlerFunc) Handle(params SigninParams) middleware.Responder
Handle executing the request and returning a response
type SigninOK ¶
type SigninOK struct { /* In: Body */ Payload *models.SigninOKBody `json:"body,omitempty"` }
SigninOK Created
swagger:response signinOK
func NewSigninOK ¶
func NewSigninOK() *SigninOK
NewSigninOK creates SigninOK with default headers values
func (*SigninOK) SetPayload ¶
func (o *SigninOK) SetPayload(payload *models.SigninOKBody)
SetPayload sets the payload to the signin o k response
func (*SigninOK) WithPayload ¶
func (o *SigninOK) WithPayload(payload *models.SigninOKBody) *SigninOK
WithPayload adds the payload to the signin o k response
func (*SigninOK) WriteResponse ¶
func (o *SigninOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SigninParams ¶
type SigninParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The account details Required: true In: body */ Body *models.SigninParamsBody }
SigninParams contains all the bound params for the signin operation typically these are obtained from a http.Request
swagger:parameters signin
func NewSigninParams ¶
func NewSigninParams() SigninParams
NewSigninParams creates a new SigninParams object no default values defined in spec.
func (*SigninParams) BindRequest ¶
func (o *SigninParams) 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 NewSigninParams() beforehand.
type SigninURL ¶
type SigninURL struct {
// contains filtered or unexported fields
}
SigninURL generates an URL for the signin operation
func (*SigninURL) SetBasePath ¶
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 (*SigninURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*SigninURL) 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 Signup ¶
type Signup struct { Context *middleware.Context Handler SignupHandler }
Signup swagger:route POST /signup account signup
Signup signup API
func NewSignup ¶
func NewSignup(ctx *middleware.Context, handler SignupHandler) *Signup
NewSignup creates a new http.Handler for the signup operation
type SignupCreated ¶
type SignupCreated struct { /* In: Body */ Payload *models.SignupCreatedBody `json:"body,omitempty"` }
SignupCreated Created
swagger:response signupCreated
func NewSignupCreated ¶
func NewSignupCreated() *SignupCreated
NewSignupCreated creates SignupCreated with default headers values
func (*SignupCreated) SetPayload ¶
func (o *SignupCreated) SetPayload(payload *models.SignupCreatedBody)
SetPayload sets the payload to the signup created response
func (*SignupCreated) WithPayload ¶
func (o *SignupCreated) WithPayload(payload *models.SignupCreatedBody) *SignupCreated
WithPayload adds the payload to the signup created response
func (*SignupCreated) WriteResponse ¶
func (o *SignupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignupDefault ¶
type SignupDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
SignupDefault unexpected error
swagger:response signupDefault
func NewSignupDefault ¶
func NewSignupDefault(code int) *SignupDefault
NewSignupDefault creates SignupDefault with default headers values
func (*SignupDefault) SetPayload ¶
func (o *SignupDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the signup default response
func (*SignupDefault) SetStatusCode ¶
func (o *SignupDefault) SetStatusCode(code int)
SetStatusCode sets the status to the signup default response
func (*SignupDefault) WithPayload ¶
func (o *SignupDefault) WithPayload(payload *models.Error) *SignupDefault
WithPayload adds the payload to the signup default response
func (*SignupDefault) WithStatusCode ¶
func (o *SignupDefault) WithStatusCode(code int) *SignupDefault
WithStatusCode adds the status to the signup default response
func (*SignupDefault) WriteResponse ¶
func (o *SignupDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignupHandler ¶
type SignupHandler interface {
Handle(SignupParams) middleware.Responder
}
SignupHandler interface for that can handle valid signup params
type SignupHandlerFunc ¶
type SignupHandlerFunc func(SignupParams) middleware.Responder
SignupHandlerFunc turns a function with the right signature into a signup handler
func (SignupHandlerFunc) Handle ¶
func (fn SignupHandlerFunc) Handle(params SignupParams) middleware.Responder
Handle executing the request and returning a response
type SignupParams ¶
type SignupParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The account details Required: true In: body */ Body *models.SignupParamsBody }
SignupParams contains all the bound params for the signup operation typically these are obtained from a http.Request
swagger:parameters signup
func NewSignupParams ¶
func NewSignupParams() SignupParams
NewSignupParams creates a new SignupParams object no default values defined in spec.
func (*SignupParams) BindRequest ¶
func (o *SignupParams) 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 NewSignupParams() beforehand.
type SignupURL ¶
type SignupURL struct {
// contains filtered or unexported fields
}
SignupURL generates an URL for the signup operation
func (*SignupURL) SetBasePath ¶
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 (*SignupURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*SignupURL) 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