Documentation ¶
Index ¶
- Constants
- 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 GetVersionOKCode int = 200
GetVersionOKCode is the HTTP code returned for type GetVersionOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetVersion ¶
type GetVersion struct { Context *middleware.Context Handler GetVersionHandler }
GetVersion swagger:route GET /version version getVersion
Get version of server
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 ¶
type GetVersionOK struct { /* In: Body */ Payload *models.ResponseVersion `json:"body,omitempty"` }
GetVersionOK OK
swagger:response getVersionOK
func NewGetVersionOK ¶
func NewGetVersionOK() *GetVersionOK
NewGetVersionOK creates GetVersionOK with default headers values
func (*GetVersionOK) SetPayload ¶
func (o *GetVersionOK) SetPayload(payload *models.ResponseVersion)
SetPayload sets the payload to the get version o k response
func (*GetVersionOK) WithPayload ¶
func (o *GetVersionOK) WithPayload(payload *models.ResponseVersion) *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