Documentation ¶
Index ¶
- Constants
- type Version
- type VersionHandler
- type VersionHandlerFunc
- type VersionOK
- type VersionParams
- type VersionURL
- func (o *VersionURL) Build() (*url.URL, error)
- func (o *VersionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *VersionURL) Must(u *url.URL, err error) *url.URL
- func (o *VersionURL) SetBasePath(bp string)
- func (o *VersionURL) String() string
- func (o *VersionURL) StringFull(scheme, host string) string
- func (o *VersionURL) WithBasePath(bp string) *VersionURL
Constants ¶
const VersionOKCode int = 200
VersionOKCode is the HTTP code returned for type VersionOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version struct { Context *middleware.Context Handler VersionHandler }
Version swagger:route GET /version general version
Returns the version of the running server.
func NewVersion ¶
func NewVersion(ctx *middleware.Context, handler VersionHandler) *Version
NewVersion creates a new http.Handler for the version operation
type VersionHandler ¶
type VersionHandler interface {
Handle(VersionParams) middleware.Responder
}
VersionHandler interface for that can handle valid version params
type VersionHandlerFunc ¶
type VersionHandlerFunc func(VersionParams) middleware.Responder
VersionHandlerFunc turns a function with the right signature into a version handler
func (VersionHandlerFunc) Handle ¶
func (fn VersionHandlerFunc) Handle(params VersionParams) middleware.Responder
Handle executing the request and returning a response
type VersionOK ¶
VersionOK The current version of the service
swagger:response versionOK
func NewVersionOK ¶
func NewVersionOK() *VersionOK
NewVersionOK creates VersionOK with default headers values
func (*VersionOK) SetPayload ¶
SetPayload sets the payload to the version o k response
func (*VersionOK) WithPayload ¶
WithPayload adds the payload to the version o k response
func (*VersionOK) WriteResponse ¶
func (o *VersionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VersionParams ¶
VersionParams contains all the bound params for the version operation typically these are obtained from a http.Request
swagger:parameters version
func NewVersionParams ¶
func NewVersionParams() VersionParams
NewVersionParams creates a new VersionParams object with the default values initialized.
func (*VersionParams) BindRequest ¶
func (o *VersionParams) 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
type VersionURL ¶
type VersionURL struct {
// contains filtered or unexported fields
}
VersionURL generates an URL for the version operation
func (*VersionURL) Build ¶
func (o *VersionURL) Build() (*url.URL, error)
Build a url path and query string
func (*VersionURL) BuildFull ¶
func (o *VersionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*VersionURL) SetBasePath ¶
func (o *VersionURL) 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 (*VersionURL) String ¶
func (o *VersionURL) String() string
String returns the string representation of the path with query string
func (*VersionURL) StringFull ¶
func (o *VersionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*VersionURL) WithBasePath ¶
func (o *VersionURL) WithBasePath(bp string) *VersionURL
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