Documentation
¶
Index ¶
- Constants
- type Get
- type GetHandler
- type GetHandlerFunc
- type GetOK
- type GetParams
- type GetTest
- type GetTestHandler
- type GetTestHandlerFunc
- type GetTestOK
- type GetTestParams
- type GetTestURL
- func (o *GetTestURL) Build() (*url.URL, error)
- func (o *GetTestURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTestURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTestURL) SetBasePath(bp string)
- func (o *GetTestURL) String() string
- func (o *GetTestURL) StringFull(scheme, host string) string
- func (o *GetTestURL) WithBasePath(bp string) *GetTestURL
- type GetURL
- func (o *GetURL) Build() (*url.URL, error)
- func (o *GetURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetURL) Must(u *url.URL, err error) *url.URL
- func (o *GetURL) SetBasePath(bp string)
- func (o *GetURL) String() string
- func (o *GetURL) StringFull(scheme, host string) string
- func (o *GetURL) WithBasePath(bp string) *GetURL
- type GetVersion
- type GetVersionHandler
- type GetVersionHandlerFunc
- type GetVersionOK
- type GetVersionParams
- type GetVersionURL
- func (o *GetVersionURL) Build() (*url.URL, error)
- func (o *GetVersionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetVersionURL) Must(u *url.URL, err error) *url.URL
- func (o *GetVersionURL) SetBasePath(bp string)
- func (o *GetVersionURL) String() string
- func (o *GetVersionURL) StringFull(scheme, host string) string
- func (o *GetVersionURL) WithBasePath(bp string) *GetVersionURL
Constants ¶
const GetOKCode int = 200
GetOKCode is the HTTP code returned for type GetOK
const GetTestOKCode int = 200
GetTestOKCode is the HTTP code returned for type GetTestOK
const GetVersionOKCode int = 200
GetVersionOKCode is the HTTP code returned for type GetVersionOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Get ¶
type Get struct { Context *middleware.Context Handler GetHandler }
Get swagger:route GET / message get
Get get API
func NewGet ¶
func NewGet(ctx *middleware.Context, handler GetHandler) *Get
NewGet creates a new http.Handler for the get operation
type GetHandler ¶
type GetHandler interface {
Handle(GetParams) middleware.Responder
}
GetHandler interface for that can handle valid get params
type GetHandlerFunc ¶
type GetHandlerFunc func(GetParams) middleware.Responder
GetHandlerFunc turns a function with the right signature into a get handler
func (GetHandlerFunc) Handle ¶
func (fn GetHandlerFunc) Handle(params GetParams) middleware.Responder
Handle executing the request and returning a response
type GetOK ¶
GetOK standard message response
swagger:response getOK
func (*GetOK) SetPayload ¶
SetPayload sets the payload to the get o k response
func (*GetOK) WithPayload ¶
WithPayload adds the payload to the get o k response
func (*GetOK) WriteResponse ¶
func (o *GetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetParams ¶
GetParams contains all the bound params for the get operation typically these are obtained from a http.Request
swagger:parameters Get
func NewGetParams ¶
func NewGetParams() GetParams
NewGetParams creates a new GetParams object no default values defined in spec.
func (*GetParams) BindRequest ¶
func (o *GetParams) 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 NewGetParams() beforehand.
type GetTest ¶
type GetTest struct { Context *middleware.Context Handler GetTestHandler }
GetTest swagger:route GET /test message getTest
GetTest get test API
func NewGetTest ¶
func NewGetTest(ctx *middleware.Context, handler GetTestHandler) *GetTest
NewGetTest creates a new http.Handler for the get test operation
type GetTestHandler ¶
type GetTestHandler interface {
Handle(GetTestParams) middleware.Responder
}
GetTestHandler interface for that can handle valid get test params
type GetTestHandlerFunc ¶
type GetTestHandlerFunc func(GetTestParams) middleware.Responder
GetTestHandlerFunc turns a function with the right signature into a get test handler
func (GetTestHandlerFunc) Handle ¶
func (fn GetTestHandlerFunc) Handle(params GetTestParams) middleware.Responder
Handle executing the request and returning a response
type GetTestOK ¶
GetTestOK standard message response
swagger:response getTestOK
func NewGetTestOK ¶
func NewGetTestOK() *GetTestOK
NewGetTestOK creates GetTestOK with default headers values
func (*GetTestOK) SetPayload ¶
SetPayload sets the payload to the get test o k response
func (*GetTestOK) WithPayload ¶
WithPayload adds the payload to the get test o k response
func (*GetTestOK) WriteResponse ¶
func (o *GetTestOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTestParams ¶
GetTestParams contains all the bound params for the get test operation typically these are obtained from a http.Request
swagger:parameters GetTest
func NewGetTestParams ¶
func NewGetTestParams() GetTestParams
NewGetTestParams creates a new GetTestParams object no default values defined in spec.
func (*GetTestParams) BindRequest ¶
func (o *GetTestParams) 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 NewGetTestParams() beforehand.
type GetTestURL ¶
type GetTestURL struct {
// contains filtered or unexported fields
}
GetTestURL generates an URL for the get test operation
func (*GetTestURL) Build ¶
func (o *GetTestURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTestURL) BuildFull ¶
func (o *GetTestURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTestURL) SetBasePath ¶
func (o *GetTestURL) 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 (*GetTestURL) String ¶
func (o *GetTestURL) String() string
String returns the string representation of the path with query string
func (*GetTestURL) StringFull ¶
func (o *GetTestURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTestURL) WithBasePath ¶
func (o *GetTestURL) WithBasePath(bp string) *GetTestURL
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 GetURL ¶
type GetURL struct {
// contains filtered or unexported fields
}
GetURL generates an URL for the get operation
func (*GetURL) 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 (*GetURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*GetURL) 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 GetVersion ¶
type GetVersion struct { Context *middleware.Context Handler GetVersionHandler }
GetVersion swagger:route GET /version message getVersion
GetVersion get version API
func NewGetVersion ¶
func NewGetVersion(ctx *middleware.Context, handler GetVersionHandler) *GetVersion
NewGetVersion creates a new http.Handler for the get version operation
func (*GetVersion) ServeHTTP ¶
func (o *GetVersion) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetVersionHandler ¶
type GetVersionHandler interface {
Handle(GetVersionParams) middleware.Responder
}
GetVersionHandler interface for that can handle valid get version params
type GetVersionHandlerFunc ¶
type GetVersionHandlerFunc func(GetVersionParams) middleware.Responder
GetVersionHandlerFunc turns a function with the right signature into a get version handler
func (GetVersionHandlerFunc) Handle ¶
func (fn GetVersionHandlerFunc) Handle(params GetVersionParams) middleware.Responder
Handle executing the request and returning a response
type GetVersionOK ¶
GetVersionOK standard message response
swagger:response getVersionOK
func NewGetVersionOK ¶
func NewGetVersionOK() *GetVersionOK
NewGetVersionOK creates GetVersionOK with default headers values
func (*GetVersionOK) SetPayload ¶
func (o *GetVersionOK) SetPayload(payload *models.Message)
SetPayload sets the payload to the get version o k response
func (*GetVersionOK) WithPayload ¶
func (o *GetVersionOK) WithPayload(payload *models.Message) *GetVersionOK
WithPayload adds the payload to the get version o k response
func (*GetVersionOK) WriteResponse ¶
func (o *GetVersionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetVersionParams ¶
GetVersionParams contains all the bound params for the get version operation typically these are obtained from a http.Request
swagger:parameters GetVersion
func NewGetVersionParams ¶
func NewGetVersionParams() GetVersionParams
NewGetVersionParams creates a new GetVersionParams object no default values defined in spec.
func (*GetVersionParams) BindRequest ¶
func (o *GetVersionParams) 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 NewGetVersionParams() beforehand.
type GetVersionURL ¶
type GetVersionURL struct {
// contains filtered or unexported fields
}
GetVersionURL generates an URL for the get version operation
func (*GetVersionURL) Build ¶
func (o *GetVersionURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetVersionURL) BuildFull ¶
func (o *GetVersionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetVersionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetVersionURL) SetBasePath ¶
func (o *GetVersionURL) 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 (*GetVersionURL) String ¶
func (o *GetVersionURL) String() string
String returns the string representation of the path with query string
func (*GetVersionURL) StringFull ¶
func (o *GetVersionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetVersionURL) WithBasePath ¶
func (o *GetVersionURL) WithBasePath(bp string) *GetVersionURL
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