Documentation ¶
Index ¶
- Constants
- type GetHealth
- type GetHealthHandler
- type GetHealthHandlerFunc
- type GetHealthOK
- type GetHealthParams
- type GetHealthURL
- func (o *GetHealthURL) Build() (*url.URL, error)
- func (o *GetHealthURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetHealthURL) Must(u *url.URL, err error) *url.URL
- func (o *GetHealthURL) SetBasePath(bp string)
- func (o *GetHealthURL) String() string
- func (o *GetHealthURL) StringFull(scheme, host string) string
- func (o *GetHealthURL) WithBasePath(bp string) *GetHealthURL
Constants ¶
const GetHealthOKCode int = 200
GetHealthOKCode is the HTTP code returned for type GetHealthOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetHealth ¶
type GetHealth struct { Context *middleware.Context Handler GetHealthHandler }
GetHealth swagger:route GET /health health getHealth
INTERNAL Endpoint: Health endpoint
func NewGetHealth ¶
func NewGetHealth(ctx *middleware.Context, handler GetHealthHandler) *GetHealth
NewGetHealth creates a new http.Handler for the get health operation
type GetHealthHandler ¶
type GetHealthHandler interface {
Handle(GetHealthParams) middleware.Responder
}
GetHealthHandler interface for that can handle valid get health params
type GetHealthHandlerFunc ¶
type GetHealthHandlerFunc func(GetHealthParams) middleware.Responder
GetHealthHandlerFunc turns a function with the right signature into a get health handler
func (GetHealthHandlerFunc) Handle ¶
func (fn GetHealthHandlerFunc) Handle(params GetHealthParams) middleware.Responder
Handle executing the request and returning a response
type GetHealthOK ¶
type GetHealthOK struct { }
GetHealthOK healthy
swagger:response getHealthOK
func NewGetHealthOK ¶
func NewGetHealthOK() *GetHealthOK
NewGetHealthOK creates GetHealthOK with default headers values
func (*GetHealthOK) WriteResponse ¶
func (o *GetHealthOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHealthParams ¶
GetHealthParams contains all the bound params for the get health operation typically these are obtained from a http.Request
swagger:parameters getHealth
func NewGetHealthParams ¶
func NewGetHealthParams() GetHealthParams
NewGetHealthParams creates a new GetHealthParams object
There are no default values defined in the spec.
func (*GetHealthParams) BindRequest ¶
func (o *GetHealthParams) 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 NewGetHealthParams() beforehand.
type GetHealthURL ¶
type GetHealthURL struct {
// contains filtered or unexported fields
}
GetHealthURL generates an URL for the get health operation
func (*GetHealthURL) Build ¶
func (o *GetHealthURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetHealthURL) BuildFull ¶
func (o *GetHealthURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetHealthURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetHealthURL) SetBasePath ¶
func (o *GetHealthURL) 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 (*GetHealthURL) String ¶
func (o *GetHealthURL) String() string
String returns the string representation of the path with query string
func (*GetHealthURL) StringFull ¶
func (o *GetHealthURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetHealthURL) WithBasePath ¶
func (o *GetHealthURL) WithBasePath(bp string) *GetHealthURL
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