Documentation ¶
Index ¶
- Constants
- type PostNewSession
- type PostNewSessionCreated
- type PostNewSessionDefault
- func (o *PostNewSessionDefault) SetPayload(payload *models.Error)
- func (o *PostNewSessionDefault) SetStatusCode(code int)
- func (o *PostNewSessionDefault) WithPayload(payload *models.Error) *PostNewSessionDefault
- func (o *PostNewSessionDefault) WithStatusCode(code int) *PostNewSessionDefault
- func (o *PostNewSessionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostNewSessionHandler
- type PostNewSessionHandlerFunc
- type PostNewSessionParams
- type PostNewSessionURL
- func (o *PostNewSessionURL) Build() (*url.URL, error)
- func (o *PostNewSessionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostNewSessionURL) Must(u *url.URL, err error) *url.URL
- func (o *PostNewSessionURL) SetBasePath(bp string)
- func (o *PostNewSessionURL) String() string
- func (o *PostNewSessionURL) StringFull(scheme, host string) string
- func (o *PostNewSessionURL) WithBasePath(bp string) *PostNewSessionURL
Constants ¶
const PostNewSessionCreatedCode int = 201
PostNewSessionCreatedCode is the HTTP code returned for type PostNewSessionCreated
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostNewSession ¶
type PostNewSession struct { Context *middleware.Context Handler PostNewSessionHandler }
PostNewSession swagger:route POST /sessions session postNewSession
login
func NewPostNewSession ¶
func NewPostNewSession(ctx *middleware.Context, handler PostNewSessionHandler) *PostNewSession
NewPostNewSession creates a new http.Handler for the post new session operation
func (*PostNewSession) ServeHTTP ¶
func (o *PostNewSession) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostNewSessionCreated ¶
type PostNewSessionCreated struct { /* In: Body */ Payload *models.Session `json:"body,omitempty"` }
PostNewSessionCreated OK
swagger:response postNewSessionCreated
func NewPostNewSessionCreated ¶
func NewPostNewSessionCreated() *PostNewSessionCreated
NewPostNewSessionCreated creates PostNewSessionCreated with default headers values
func (*PostNewSessionCreated) SetPayload ¶
func (o *PostNewSessionCreated) SetPayload(payload *models.Session)
SetPayload sets the payload to the post new session created response
func (*PostNewSessionCreated) WithPayload ¶
func (o *PostNewSessionCreated) WithPayload(payload *models.Session) *PostNewSessionCreated
WithPayload adds the payload to the post new session created response
func (*PostNewSessionCreated) WriteResponse ¶
func (o *PostNewSessionCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostNewSessionDefault ¶
type PostNewSessionDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PostNewSessionDefault Unexpected error
swagger:response postNewSessionDefault
func NewPostNewSessionDefault ¶
func NewPostNewSessionDefault(code int) *PostNewSessionDefault
NewPostNewSessionDefault creates PostNewSessionDefault with default headers values
func (*PostNewSessionDefault) SetPayload ¶
func (o *PostNewSessionDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the post new session default response
func (*PostNewSessionDefault) SetStatusCode ¶
func (o *PostNewSessionDefault) SetStatusCode(code int)
SetStatusCode sets the status to the post new session default response
func (*PostNewSessionDefault) WithPayload ¶
func (o *PostNewSessionDefault) WithPayload(payload *models.Error) *PostNewSessionDefault
WithPayload adds the payload to the post new session default response
func (*PostNewSessionDefault) WithStatusCode ¶
func (o *PostNewSessionDefault) WithStatusCode(code int) *PostNewSessionDefault
WithStatusCode adds the status to the post new session default response
func (*PostNewSessionDefault) WriteResponse ¶
func (o *PostNewSessionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostNewSessionHandler ¶
type PostNewSessionHandler interface {
Handle(PostNewSessionParams) middleware.Responder
}
PostNewSessionHandler interface for that can handle valid post new session params
type PostNewSessionHandlerFunc ¶
type PostNewSessionHandlerFunc func(PostNewSessionParams) middleware.Responder
PostNewSessionHandlerFunc turns a function with the right signature into a post new session handler
func (PostNewSessionHandlerFunc) Handle ¶
func (fn PostNewSessionHandlerFunc) Handle(params PostNewSessionParams) middleware.Responder
Handle executing the request and returning a response
type PostNewSessionParams ¶
type PostNewSessionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.PostNewSessionParamsBody }
PostNewSessionParams contains all the bound params for the post new session operation typically these are obtained from a http.Request
swagger:parameters postNewSession
func NewPostNewSessionParams ¶
func NewPostNewSessionParams() PostNewSessionParams
NewPostNewSessionParams creates a new PostNewSessionParams object no default values defined in spec.
func (*PostNewSessionParams) BindRequest ¶
func (o *PostNewSessionParams) 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 NewPostNewSessionParams() beforehand.
type PostNewSessionURL ¶
type PostNewSessionURL struct {
// contains filtered or unexported fields
}
PostNewSessionURL generates an URL for the post new session operation
func (*PostNewSessionURL) Build ¶
func (o *PostNewSessionURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostNewSessionURL) BuildFull ¶
func (o *PostNewSessionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostNewSessionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostNewSessionURL) SetBasePath ¶
func (o *PostNewSessionURL) 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 (*PostNewSessionURL) String ¶
func (o *PostNewSessionURL) String() string
String returns the string representation of the path with query string
func (*PostNewSessionURL) StringFull ¶
func (o *PostNewSessionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostNewSessionURL) WithBasePath ¶
func (o *PostNewSessionURL) WithBasePath(bp string) *PostNewSessionURL
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