Documentation ¶
Index ¶
- Constants
- type PostSignup
- type PostSignupBadRequest
- type PostSignupHandler
- type PostSignupHandlerFunc
- type PostSignupOK
- type PostSignupParams
- type PostSignupURL
- func (o *PostSignupURL) Build() (*url.URL, error)
- func (o *PostSignupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostSignupURL) Must(u *url.URL, err error) *url.URL
- func (o *PostSignupURL) SetBasePath(bp string)
- func (o *PostSignupURL) String() string
- func (o *PostSignupURL) StringFull(scheme, host string) string
- func (o *PostSignupURL) WithBasePath(bp string) *PostSignupURL
Constants ¶
const PostSignupBadRequestCode int = 400
PostSignupBadRequestCode is the HTTP code returned for type PostSignupBadRequest
const PostSignupOKCode int = 200
PostSignupOKCode is the HTTP code returned for type PostSignupOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostSignup ¶
type PostSignup struct { Context *middleware.Context Handler PostSignupHandler }
PostSignup swagger:route POST /signup Signup postSignup
Sign-up request
func NewPostSignup ¶
func NewPostSignup(ctx *middleware.Context, handler PostSignupHandler) *PostSignup
NewPostSignup creates a new http.Handler for the post signup operation
func (*PostSignup) ServeHTTP ¶
func (o *PostSignup) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostSignupBadRequest ¶
type PostSignupBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
PostSignupBadRequest Error when signup
swagger:response postSignupBadRequest
func NewPostSignupBadRequest ¶
func NewPostSignupBadRequest() *PostSignupBadRequest
NewPostSignupBadRequest creates PostSignupBadRequest with default headers values
func (*PostSignupBadRequest) SetPayload ¶
func (o *PostSignupBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post signup bad request response
func (*PostSignupBadRequest) WithPayload ¶
func (o *PostSignupBadRequest) WithPayload(payload *models.ErrorResponse) *PostSignupBadRequest
WithPayload adds the payload to the post signup bad request response
func (*PostSignupBadRequest) WriteResponse ¶
func (o *PostSignupBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostSignupHandler ¶
type PostSignupHandler interface {
Handle(PostSignupParams) middleware.Responder
}
PostSignupHandler interface for that can handle valid post signup params
type PostSignupHandlerFunc ¶
type PostSignupHandlerFunc func(PostSignupParams) middleware.Responder
PostSignupHandlerFunc turns a function with the right signature into a post signup handler
func (PostSignupHandlerFunc) Handle ¶
func (fn PostSignupHandlerFunc) Handle(params PostSignupParams) middleware.Responder
Handle executing the request and returning a response
type PostSignupOK ¶
type PostSignupOK struct { /* In: Body */ Payload *models.SignupResponse `json:"body,omitempty"` }
PostSignupOK Response for signup request
swagger:response postSignupOK
func NewPostSignupOK ¶
func NewPostSignupOK() *PostSignupOK
NewPostSignupOK creates PostSignupOK with default headers values
func (*PostSignupOK) SetPayload ¶
func (o *PostSignupOK) SetPayload(payload *models.SignupResponse)
SetPayload sets the payload to the post signup o k response
func (*PostSignupOK) WithPayload ¶
func (o *PostSignupOK) WithPayload(payload *models.SignupResponse) *PostSignupOK
WithPayload adds the payload to the post signup o k response
func (*PostSignupOK) WriteResponse ¶
func (o *PostSignupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostSignupParams ¶
type PostSignupParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.SignupRequest }
PostSignupParams contains all the bound params for the post signup operation typically these are obtained from a http.Request
swagger:parameters PostSignup
func NewPostSignupParams ¶
func NewPostSignupParams() PostSignupParams
NewPostSignupParams creates a new PostSignupParams object
There are no default values defined in the spec.
func (*PostSignupParams) BindRequest ¶
func (o *PostSignupParams) 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 NewPostSignupParams() beforehand.
type PostSignupURL ¶
type PostSignupURL struct {
// contains filtered or unexported fields
}
PostSignupURL generates an URL for the post signup operation
func (*PostSignupURL) Build ¶
func (o *PostSignupURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostSignupURL) BuildFull ¶
func (o *PostSignupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostSignupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostSignupURL) SetBasePath ¶
func (o *PostSignupURL) 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 (*PostSignupURL) String ¶
func (o *PostSignupURL) String() string
String returns the string representation of the path with query string
func (*PostSignupURL) StringFull ¶
func (o *PostSignupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostSignupURL) WithBasePath ¶
func (o *PostSignupURL) WithBasePath(bp string) *PostSignupURL
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