app

package
v0.0.0-...-17bba56 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GetConfigurationsOKCode int = 200

GetConfigurationsOKCode is the HTTP code returned for type GetConfigurationsOK

View Source
const GetEndpointsOKCode int = 200

GetEndpointsOKCode is the HTTP code returned for type GetEndpointsOK

View Source
const GetVersionsOKCode int = 200

GetVersionsOKCode is the HTTP code returned for type GetVersionsOK

View Source
const PostConfigurationsCreatedCode int = 201

PostConfigurationsCreatedCode is the HTTP code returned for type PostConfigurationsCreated

View Source
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 GetConfigurations

type GetConfigurations struct {
	Context *middleware.Context
	Handler GetConfigurationsHandler
}

GetConfigurations swagger:route GET /configurations app getConfigurations

returns app configurations

func NewGetConfigurations

func NewGetConfigurations(ctx *middleware.Context, handler GetConfigurationsHandler) *GetConfigurations

NewGetConfigurations creates a new http.Handler for the get configurations operation

func (*GetConfigurations) ServeHTTP

func (o *GetConfigurations) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetConfigurationsDefault

type GetConfigurationsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetConfigurationsDefault Unexpected error

swagger:response getConfigurationsDefault

func NewGetConfigurationsDefault

func NewGetConfigurationsDefault(code int) *GetConfigurationsDefault

NewGetConfigurationsDefault creates GetConfigurationsDefault with default headers values

func (*GetConfigurationsDefault) SetPayload

func (o *GetConfigurationsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get configurations default response

func (*GetConfigurationsDefault) SetStatusCode

func (o *GetConfigurationsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get configurations default response

func (*GetConfigurationsDefault) WithPayload

WithPayload adds the payload to the get configurations default response

func (*GetConfigurationsDefault) WithStatusCode

func (o *GetConfigurationsDefault) WithStatusCode(code int) *GetConfigurationsDefault

WithStatusCode adds the status to the get configurations default response

func (*GetConfigurationsDefault) WriteResponse

func (o *GetConfigurationsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetConfigurationsHandler

type GetConfigurationsHandler interface {
	Handle(GetConfigurationsParams) middleware.Responder
}

GetConfigurationsHandler interface for that can handle valid get configurations params

type GetConfigurationsHandlerFunc

type GetConfigurationsHandlerFunc func(GetConfigurationsParams) middleware.Responder

GetConfigurationsHandlerFunc turns a function with the right signature into a get configurations handler

func (GetConfigurationsHandlerFunc) Handle

Handle executing the request and returning a response

type GetConfigurationsOK

type GetConfigurationsOK struct {

	/*
	  In: Body
	*/
	Payload *models.Configuration `json:"body,omitempty"`
}

GetConfigurationsOK OK

swagger:response getConfigurationsOK

func NewGetConfigurationsOK

func NewGetConfigurationsOK() *GetConfigurationsOK

NewGetConfigurationsOK creates GetConfigurationsOK with default headers values

func (*GetConfigurationsOK) SetPayload

func (o *GetConfigurationsOK) SetPayload(payload *models.Configuration)

SetPayload sets the payload to the get configurations o k response

func (*GetConfigurationsOK) WithPayload

func (o *GetConfigurationsOK) WithPayload(payload *models.Configuration) *GetConfigurationsOK

WithPayload adds the payload to the get configurations o k response

func (*GetConfigurationsOK) WriteResponse

func (o *GetConfigurationsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetConfigurationsParams

type GetConfigurationsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetConfigurationsParams contains all the bound params for the get configurations operation typically these are obtained from a http.Request

swagger:parameters getConfigurations

func NewGetConfigurationsParams

func NewGetConfigurationsParams() GetConfigurationsParams

NewGetConfigurationsParams creates a new GetConfigurationsParams object no default values defined in spec.

func (*GetConfigurationsParams) BindRequest

func (o *GetConfigurationsParams) 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 NewGetConfigurationsParams() beforehand.

type GetConfigurationsURL

type GetConfigurationsURL struct {
	// contains filtered or unexported fields
}

GetConfigurationsURL generates an URL for the get configurations operation

func (*GetConfigurationsURL) Build

func (o *GetConfigurationsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetConfigurationsURL) BuildFull

func (o *GetConfigurationsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetConfigurationsURL) Must

func (o *GetConfigurationsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetConfigurationsURL) SetBasePath

func (o *GetConfigurationsURL) 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 (*GetConfigurationsURL) String

func (o *GetConfigurationsURL) String() string

String returns the string representation of the path with query string

func (*GetConfigurationsURL) StringFull

func (o *GetConfigurationsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetConfigurationsURL) WithBasePath

func (o *GetConfigurationsURL) WithBasePath(bp string) *GetConfigurationsURL

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 GetEndpoints

type GetEndpoints struct {
	Context *middleware.Context
	Handler GetEndpointsHandler
}

GetEndpoints swagger:route GET /endpoints app getEndpoints

returns third-party endpoints

func NewGetEndpoints

func NewGetEndpoints(ctx *middleware.Context, handler GetEndpointsHandler) *GetEndpoints

NewGetEndpoints creates a new http.Handler for the get endpoints operation

func (*GetEndpoints) ServeHTTP

func (o *GetEndpoints) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetEndpointsDefault

type GetEndpointsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetEndpointsDefault Unexpected error

swagger:response getEndpointsDefault

func NewGetEndpointsDefault

func NewGetEndpointsDefault(code int) *GetEndpointsDefault

NewGetEndpointsDefault creates GetEndpointsDefault with default headers values

func (*GetEndpointsDefault) SetPayload

func (o *GetEndpointsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get endpoints default response

func (*GetEndpointsDefault) SetStatusCode

func (o *GetEndpointsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get endpoints default response

func (*GetEndpointsDefault) WithPayload

func (o *GetEndpointsDefault) WithPayload(payload *models.Error) *GetEndpointsDefault

WithPayload adds the payload to the get endpoints default response

func (*GetEndpointsDefault) WithStatusCode

func (o *GetEndpointsDefault) WithStatusCode(code int) *GetEndpointsDefault

WithStatusCode adds the status to the get endpoints default response

func (*GetEndpointsDefault) WriteResponse

func (o *GetEndpointsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEndpointsHandler

type GetEndpointsHandler interface {
	Handle(GetEndpointsParams) middleware.Responder
}

GetEndpointsHandler interface for that can handle valid get endpoints params

type GetEndpointsHandlerFunc

type GetEndpointsHandlerFunc func(GetEndpointsParams) middleware.Responder

GetEndpointsHandlerFunc turns a function with the right signature into a get endpoints handler

func (GetEndpointsHandlerFunc) Handle

Handle executing the request and returning a response

type GetEndpointsOK

type GetEndpointsOK struct {

	/*
	  In: Body
	*/
	Payload *models.Endpoints `json:"body,omitempty"`
}

GetEndpointsOK OK

swagger:response getEndpointsOK

func NewGetEndpointsOK

func NewGetEndpointsOK() *GetEndpointsOK

NewGetEndpointsOK creates GetEndpointsOK with default headers values

func (*GetEndpointsOK) SetPayload

func (o *GetEndpointsOK) SetPayload(payload *models.Endpoints)

SetPayload sets the payload to the get endpoints o k response

func (*GetEndpointsOK) WithPayload

func (o *GetEndpointsOK) WithPayload(payload *models.Endpoints) *GetEndpointsOK

WithPayload adds the payload to the get endpoints o k response

func (*GetEndpointsOK) WriteResponse

func (o *GetEndpointsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEndpointsParams

type GetEndpointsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetEndpointsParams contains all the bound params for the get endpoints operation typically these are obtained from a http.Request

swagger:parameters getEndpoints

func NewGetEndpointsParams

func NewGetEndpointsParams() GetEndpointsParams

NewGetEndpointsParams creates a new GetEndpointsParams object no default values defined in spec.

func (*GetEndpointsParams) BindRequest

func (o *GetEndpointsParams) 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 NewGetEndpointsParams() beforehand.

type GetEndpointsURL

type GetEndpointsURL struct {
	// contains filtered or unexported fields
}

GetEndpointsURL generates an URL for the get endpoints operation

func (*GetEndpointsURL) Build

func (o *GetEndpointsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetEndpointsURL) BuildFull

func (o *GetEndpointsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetEndpointsURL) Must

func (o *GetEndpointsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetEndpointsURL) SetBasePath

func (o *GetEndpointsURL) 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 (*GetEndpointsURL) String

func (o *GetEndpointsURL) String() string

String returns the string representation of the path with query string

func (*GetEndpointsURL) StringFull

func (o *GetEndpointsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetEndpointsURL) WithBasePath

func (o *GetEndpointsURL) WithBasePath(bp string) *GetEndpointsURL

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 GetVersions

type GetVersions struct {
	Context *middleware.Context
	Handler GetVersionsHandler
}

GetVersions swagger:route GET /versions app getVersions

returns application versions

func NewGetVersions

func NewGetVersions(ctx *middleware.Context, handler GetVersionsHandler) *GetVersions

NewGetVersions creates a new http.Handler for the get versions operation

func (*GetVersions) ServeHTTP

func (o *GetVersions) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetVersionsDefault

type GetVersionsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetVersionsDefault Unexpected error

swagger:response getVersionsDefault

func NewGetVersionsDefault

func NewGetVersionsDefault(code int) *GetVersionsDefault

NewGetVersionsDefault creates GetVersionsDefault with default headers values

func (*GetVersionsDefault) SetPayload

func (o *GetVersionsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get versions default response

func (*GetVersionsDefault) SetStatusCode

func (o *GetVersionsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get versions default response

func (*GetVersionsDefault) WithPayload

func (o *GetVersionsDefault) WithPayload(payload *models.Error) *GetVersionsDefault

WithPayload adds the payload to the get versions default response

func (*GetVersionsDefault) WithStatusCode

func (o *GetVersionsDefault) WithStatusCode(code int) *GetVersionsDefault

WithStatusCode adds the status to the get versions default response

func (*GetVersionsDefault) WriteResponse

func (o *GetVersionsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetVersionsHandler

type GetVersionsHandler interface {
	Handle(GetVersionsParams) middleware.Responder
}

GetVersionsHandler interface for that can handle valid get versions params

type GetVersionsHandlerFunc

type GetVersionsHandlerFunc func(GetVersionsParams) middleware.Responder

GetVersionsHandlerFunc turns a function with the right signature into a get versions handler

func (GetVersionsHandlerFunc) Handle

Handle executing the request and returning a response

type GetVersionsOK

type GetVersionsOK struct {

	/*
	  In: Body
	*/
	Payload *models.Versions `json:"body,omitempty"`
}

GetVersionsOK OK

swagger:response getVersionsOK

func NewGetVersionsOK

func NewGetVersionsOK() *GetVersionsOK

NewGetVersionsOK creates GetVersionsOK with default headers values

func (*GetVersionsOK) SetPayload

func (o *GetVersionsOK) SetPayload(payload *models.Versions)

SetPayload sets the payload to the get versions o k response

func (*GetVersionsOK) WithPayload

func (o *GetVersionsOK) WithPayload(payload *models.Versions) *GetVersionsOK

WithPayload adds the payload to the get versions o k response

func (*GetVersionsOK) WriteResponse

func (o *GetVersionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetVersionsParams

type GetVersionsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetVersionsParams contains all the bound params for the get versions operation typically these are obtained from a http.Request

swagger:parameters getVersions

func NewGetVersionsParams

func NewGetVersionsParams() GetVersionsParams

NewGetVersionsParams creates a new GetVersionsParams object no default values defined in spec.

func (*GetVersionsParams) BindRequest

func (o *GetVersionsParams) 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 NewGetVersionsParams() beforehand.

type GetVersionsURL

type GetVersionsURL struct {
	// contains filtered or unexported fields
}

GetVersionsURL generates an URL for the get versions operation

func (*GetVersionsURL) Build

func (o *GetVersionsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetVersionsURL) BuildFull

func (o *GetVersionsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetVersionsURL) Must

func (o *GetVersionsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetVersionsURL) SetBasePath

func (o *GetVersionsURL) 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 (*GetVersionsURL) String

func (o *GetVersionsURL) String() string

String returns the string representation of the path with query string

func (*GetVersionsURL) StringFull

func (o *GetVersionsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetVersionsURL) WithBasePath

func (o *GetVersionsURL) WithBasePath(bp string) *GetVersionsURL

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 PostConfigurations

type PostConfigurations struct {
	Context *middleware.Context
	Handler PostConfigurationsHandler
}

PostConfigurations swagger:route POST /configurations app postConfigurations

set app configurations

func NewPostConfigurations

func NewPostConfigurations(ctx *middleware.Context, handler PostConfigurationsHandler) *PostConfigurations

NewPostConfigurations creates a new http.Handler for the post configurations operation

func (*PostConfigurations) ServeHTTP

func (o *PostConfigurations) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PostConfigurationsCreated

type PostConfigurationsCreated struct {

	/*
	  In: Body
	*/
	Payload *models.Session `json:"body,omitempty"`
}

PostConfigurationsCreated OK

swagger:response postConfigurationsCreated

func NewPostConfigurationsCreated

func NewPostConfigurationsCreated() *PostConfigurationsCreated

NewPostConfigurationsCreated creates PostConfigurationsCreated with default headers values

func (*PostConfigurationsCreated) SetPayload

func (o *PostConfigurationsCreated) SetPayload(payload *models.Session)

SetPayload sets the payload to the post configurations created response

func (*PostConfigurationsCreated) WithPayload

WithPayload adds the payload to the post configurations created response

func (*PostConfigurationsCreated) WriteResponse

func (o *PostConfigurationsCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostConfigurationsDefault

type PostConfigurationsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PostConfigurationsDefault Unexpected error

swagger:response postConfigurationsDefault

func NewPostConfigurationsDefault

func NewPostConfigurationsDefault(code int) *PostConfigurationsDefault

NewPostConfigurationsDefault creates PostConfigurationsDefault with default headers values

func (*PostConfigurationsDefault) SetPayload

func (o *PostConfigurationsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the post configurations default response

func (*PostConfigurationsDefault) SetStatusCode

func (o *PostConfigurationsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post configurations default response

func (*PostConfigurationsDefault) WithPayload

WithPayload adds the payload to the post configurations default response

func (*PostConfigurationsDefault) WithStatusCode

func (o *PostConfigurationsDefault) WithStatusCode(code int) *PostConfigurationsDefault

WithStatusCode adds the status to the post configurations default response

func (*PostConfigurationsDefault) WriteResponse

func (o *PostConfigurationsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostConfigurationsHandler

type PostConfigurationsHandler interface {
	Handle(PostConfigurationsParams) middleware.Responder
}

PostConfigurationsHandler interface for that can handle valid post configurations params

type PostConfigurationsHandlerFunc

type PostConfigurationsHandlerFunc func(PostConfigurationsParams) middleware.Responder

PostConfigurationsHandlerFunc turns a function with the right signature into a post configurations handler

func (PostConfigurationsHandlerFunc) Handle

Handle executing the request and returning a response

type PostConfigurationsParams

type PostConfigurationsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.PostConfigurationsParamsBody
}

PostConfigurationsParams contains all the bound params for the post configurations operation typically these are obtained from a http.Request

swagger:parameters postConfigurations

func NewPostConfigurationsParams

func NewPostConfigurationsParams() PostConfigurationsParams

NewPostConfigurationsParams creates a new PostConfigurationsParams object no default values defined in spec.

func (*PostConfigurationsParams) BindRequest

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 NewPostConfigurationsParams() beforehand.

type PostConfigurationsURL

type PostConfigurationsURL struct {
	// contains filtered or unexported fields
}

PostConfigurationsURL generates an URL for the post configurations operation

func (*PostConfigurationsURL) Build

func (o *PostConfigurationsURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostConfigurationsURL) BuildFull

func (o *PostConfigurationsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostConfigurationsURL) Must

func (o *PostConfigurationsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PostConfigurationsURL) SetBasePath

func (o *PostConfigurationsURL) 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 (*PostConfigurationsURL) String

func (o *PostConfigurationsURL) String() string

String returns the string representation of the path with query string

func (*PostConfigurationsURL) StringFull

func (o *PostConfigurationsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostConfigurationsURL) WithBasePath

func (o *PostConfigurationsURL) WithBasePath(bp string) *PostConfigurationsURL

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 PostNewSession

type PostNewSession struct {
	Context *middleware.Context
	Handler PostNewSessionHandler
}

PostNewSession swagger:route POST /sessions app 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

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

func (o *PostNewSessionURL) Must(u *url.URL, err error) *url.URL

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL