Documentation ¶
Index ¶
- Constants
- type GetInfo
- type GetInfoBadRequest
- type GetInfoHandler
- type GetInfoHandlerFunc
- type GetInfoInternalServerError
- type GetInfoOK
- type GetInfoParams
- type GetInfoURL
- func (o *GetInfoURL) Build() (*url.URL, error)
- func (o *GetInfoURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetInfoURL) Must(u *url.URL, err error) *url.URL
- func (o *GetInfoURL) SetBasePath(bp string)
- func (o *GetInfoURL) String() string
- func (o *GetInfoURL) StringFull(scheme, host string) string
- func (o *GetInfoURL) WithBasePath(bp string) *GetInfoURL
Constants ¶
const GetInfoBadRequestCode int = 400
GetInfoBadRequestCode is the HTTP code returned for type GetInfoBadRequest
const GetInfoInternalServerErrorCode int = 500
GetInfoInternalServerErrorCode is the HTTP code returned for type GetInfoInternalServerError
const GetInfoOKCode int = 200
GetInfoOKCode is the HTTP code returned for type GetInfoOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetInfo ¶
type GetInfo struct { Context *middleware.Context Handler GetInfoHandler }
GetInfo swagger:route GET /v1/info svcInfo getInfo
Gets service info
func NewGetInfo ¶
func NewGetInfo(ctx *middleware.Context, handler GetInfoHandler) *GetInfo
NewGetInfo creates a new http.Handler for the get info operation
type GetInfoBadRequest ¶
GetInfoBadRequest Bad Request
swagger:response getInfoBadRequest
func NewGetInfoBadRequest ¶
func NewGetInfoBadRequest() *GetInfoBadRequest
NewGetInfoBadRequest creates GetInfoBadRequest with default headers values
func (*GetInfoBadRequest) SetPayload ¶
func (o *GetInfoBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get info bad request response
func (*GetInfoBadRequest) WithPayload ¶
func (o *GetInfoBadRequest) WithPayload(payload *models.Error) *GetInfoBadRequest
WithPayload adds the payload to the get info bad request response
func (*GetInfoBadRequest) WriteResponse ¶
func (o *GetInfoBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetInfoHandler ¶
type GetInfoHandler interface {
Handle(GetInfoParams) middleware.Responder
}
GetInfoHandler interface for that can handle valid get info params
type GetInfoHandlerFunc ¶
type GetInfoHandlerFunc func(GetInfoParams) middleware.Responder
GetInfoHandlerFunc turns a function with the right signature into a get info handler
func (GetInfoHandlerFunc) Handle ¶
func (fn GetInfoHandlerFunc) Handle(params GetInfoParams) middleware.Responder
Handle executing the request and returning a response
type GetInfoInternalServerError ¶
type GetInfoInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetInfoInternalServerError internal server error
swagger:response getInfoInternalServerError
func NewGetInfoInternalServerError ¶
func NewGetInfoInternalServerError() *GetInfoInternalServerError
NewGetInfoInternalServerError creates GetInfoInternalServerError with default headers values
func (*GetInfoInternalServerError) SetPayload ¶
func (o *GetInfoInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get info internal server error response
func (*GetInfoInternalServerError) WithPayload ¶
func (o *GetInfoInternalServerError) WithPayload(payload *models.Error) *GetInfoInternalServerError
WithPayload adds the payload to the get info internal server error response
func (*GetInfoInternalServerError) WriteResponse ¶
func (o *GetInfoInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetInfoOK ¶
type GetInfoOK struct { /* In: Body */ Payload *models.ServiceInfo `json:"body,omitempty"` }
GetInfoOK Success
swagger:response getInfoOK
func NewGetInfoOK ¶
func NewGetInfoOK() *GetInfoOK
NewGetInfoOK creates GetInfoOK with default headers values
func (*GetInfoOK) SetPayload ¶
func (o *GetInfoOK) SetPayload(payload *models.ServiceInfo)
SetPayload sets the payload to the get info o k response
func (*GetInfoOK) WithPayload ¶
func (o *GetInfoOK) WithPayload(payload *models.ServiceInfo) *GetInfoOK
WithPayload adds the payload to the get info o k response
func (*GetInfoOK) WriteResponse ¶
func (o *GetInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetInfoParams ¶
GetInfoParams contains all the bound params for the get info operation typically these are obtained from a http.Request
swagger:parameters getInfo
func NewGetInfoParams ¶
func NewGetInfoParams() GetInfoParams
NewGetInfoParams creates a new GetInfoParams object
There are no default values defined in the spec.
func (*GetInfoParams) BindRequest ¶
func (o *GetInfoParams) 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 NewGetInfoParams() beforehand.
type GetInfoURL ¶
type GetInfoURL struct {
// contains filtered or unexported fields
}
GetInfoURL generates an URL for the get info operation
func (*GetInfoURL) Build ¶
func (o *GetInfoURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetInfoURL) BuildFull ¶
func (o *GetInfoURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetInfoURL) SetBasePath ¶
func (o *GetInfoURL) 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 (*GetInfoURL) String ¶
func (o *GetInfoURL) String() string
String returns the string representation of the path with query string
func (*GetInfoURL) StringFull ¶
func (o *GetInfoURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetInfoURL) WithBasePath ¶
func (o *GetInfoURL) WithBasePath(bp string) *GetInfoURL
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