Documentation ¶
Index ¶
- Constants
- type GetTableCsv
- type GetTableCsvBadRequest
- type GetTableCsvHandler
- type GetTableCsvHandlerFunc
- type GetTableCsvInternalServerError
- type GetTableCsvOK
- type GetTableCsvParams
- type GetTableCsvURL
- func (o *GetTableCsvURL) Build() (*url.URL, error)
- func (o *GetTableCsvURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTableCsvURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTableCsvURL) SetBasePath(bp string)
- func (o *GetTableCsvURL) String() string
- func (o *GetTableCsvURL) StringFull(scheme, host string) string
- func (o *GetTableCsvURL) WithBasePath(bp string) *GetTableCsvURL
- type Login
- type LoginHandler
- type LoginHandlerFunc
- type LoginOK
- type LoginParams
- type LoginURL
- func (o *LoginURL) Build() (*url.URL, error)
- func (o *LoginURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LoginURL) Must(u *url.URL, err error) *url.URL
- func (o *LoginURL) SetBasePath(bp string)
- func (o *LoginURL) String() string
- func (o *LoginURL) StringFull(scheme, host string) string
- func (o *LoginURL) WithBasePath(bp string) *LoginURL
- type LoginUnauthorized
- type PrometheusRead
- type PrometheusReadHandler
- type PrometheusReadHandlerFunc
- type PrometheusReadInternalServerError
- func (o *PrometheusReadInternalServerError) SetPayload(payload *models.QdbError)
- func (o *PrometheusReadInternalServerError) WithPayload(payload *models.QdbError) *PrometheusReadInternalServerError
- func (o *PrometheusReadInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PrometheusReadOK
- type PrometheusReadParams
- type PrometheusReadURL
- func (o *PrometheusReadURL) Build() (*url.URL, error)
- func (o *PrometheusReadURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PrometheusReadURL) Must(u *url.URL, err error) *url.URL
- func (o *PrometheusReadURL) SetBasePath(bp string)
- func (o *PrometheusReadURL) String() string
- func (o *PrometheusReadURL) StringFull(scheme, host string) string
- func (o *PrometheusReadURL) WithBasePath(bp string) *PrometheusReadURL
- type PrometheusWrite
- type PrometheusWriteHandler
- type PrometheusWriteHandlerFunc
- type PrometheusWriteInternalServerError
- func (o *PrometheusWriteInternalServerError) SetPayload(payload *models.QdbError)
- func (o *PrometheusWriteInternalServerError) WithPayload(payload *models.QdbError) *PrometheusWriteInternalServerError
- func (o *PrometheusWriteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PrometheusWriteOK
- type PrometheusWriteParams
- type PrometheusWriteURL
- func (o *PrometheusWriteURL) Build() (*url.URL, error)
- func (o *PrometheusWriteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PrometheusWriteURL) Must(u *url.URL, err error) *url.URL
- func (o *PrometheusWriteURL) SetBasePath(bp string)
- func (o *PrometheusWriteURL) String() string
- func (o *PrometheusWriteURL) StringFull(scheme, host string) string
- func (o *PrometheusWriteURL) WithBasePath(bp string) *PrometheusWriteURL
- type QdbAPIRestAPI
- func (o *QdbAPIRestAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *QdbAPIRestAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *QdbAPIRestAPI) Authorizer() runtime.Authorizer
- func (o *QdbAPIRestAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *QdbAPIRestAPI) Context() *middleware.Context
- func (o *QdbAPIRestAPI) DefaultConsumes() string
- func (o *QdbAPIRestAPI) DefaultProduces() string
- func (o *QdbAPIRestAPI) Formats() strfmt.Registry
- func (o *QdbAPIRestAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *QdbAPIRestAPI) Init()
- func (o *QdbAPIRestAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *QdbAPIRestAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *QdbAPIRestAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *QdbAPIRestAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *QdbAPIRestAPI) Serve(builder middleware.Builder) http.Handler
- func (o *QdbAPIRestAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *QdbAPIRestAPI) SetDefaultConsumes(mediaType string)
- func (o *QdbAPIRestAPI) SetDefaultProduces(mediaType string)
- func (o *QdbAPIRestAPI) SetSpec(spec *loads.Document)
- func (o *QdbAPIRestAPI) UseRedoc()
- func (o *QdbAPIRestAPI) UseSwaggerUI()
- func (o *QdbAPIRestAPI) Validate() error
- type Status
- type StatusBadRequest
- type StatusHandler
- type StatusHandlerFunc
- type StatusLiveliness
- type StatusLivelinessHandler
- type StatusLivelinessHandlerFunc
- type StatusLivelinessInternalServerError
- func (o *StatusLivelinessInternalServerError) SetPayload(payload *models.QdbError)
- func (o *StatusLivelinessInternalServerError) WithPayload(payload *models.QdbError) *StatusLivelinessInternalServerError
- func (o *StatusLivelinessInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type StatusLivelinessOK
- type StatusLivelinessParams
- type StatusLivelinessURL
- func (o *StatusLivelinessURL) Build() (*url.URL, error)
- func (o *StatusLivelinessURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *StatusLivelinessURL) Must(u *url.URL, err error) *url.URL
- func (o *StatusLivelinessURL) SetBasePath(bp string)
- func (o *StatusLivelinessURL) String() string
- func (o *StatusLivelinessURL) StringFull(scheme, host string) string
- func (o *StatusLivelinessURL) WithBasePath(bp string) *StatusLivelinessURL
- type StatusLiveness
- type StatusLivenessHandler
- type StatusLivenessHandlerFunc
- type StatusLivenessInternalServerError
- func (o *StatusLivenessInternalServerError) SetPayload(payload *models.QdbError)
- func (o *StatusLivenessInternalServerError) WithPayload(payload *models.QdbError) *StatusLivenessInternalServerError
- func (o *StatusLivenessInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type StatusLivenessOK
- type StatusLivenessParams
- type StatusLivenessURL
- func (o *StatusLivenessURL) Build() (*url.URL, error)
- func (o *StatusLivenessURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *StatusLivenessURL) Must(u *url.URL, err error) *url.URL
- func (o *StatusLivenessURL) SetBasePath(bp string)
- func (o *StatusLivenessURL) String() string
- func (o *StatusLivenessURL) StringFull(scheme, host string) string
- func (o *StatusLivenessURL) WithBasePath(bp string) *StatusLivenessURL
- type StatusOK
- type StatusParams
- type StatusReadiness
- type StatusReadinessHandler
- type StatusReadinessHandlerFunc
- type StatusReadinessInternalServerError
- func (o *StatusReadinessInternalServerError) SetPayload(payload *models.QdbError)
- func (o *StatusReadinessInternalServerError) WithPayload(payload *models.QdbError) *StatusReadinessInternalServerError
- func (o *StatusReadinessInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type StatusReadinessOK
- type StatusReadinessParams
- type StatusReadinessURL
- func (o *StatusReadinessURL) Build() (*url.URL, error)
- func (o *StatusReadinessURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *StatusReadinessURL) Must(u *url.URL, err error) *url.URL
- func (o *StatusReadinessURL) SetBasePath(bp string)
- func (o *StatusReadinessURL) String() string
- func (o *StatusReadinessURL) StringFull(scheme, host string) string
- func (o *StatusReadinessURL) WithBasePath(bp string) *StatusReadinessURL
- type StatusURL
- func (o *StatusURL) Build() (*url.URL, error)
- func (o *StatusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *StatusURL) Must(u *url.URL, err error) *url.URL
- func (o *StatusURL) SetBasePath(bp string)
- func (o *StatusURL) String() string
- func (o *StatusURL) StringFull(scheme, host string) string
- func (o *StatusURL) WithBasePath(bp string) *StatusURL
Constants ¶
const GetTableCsvBadRequestCode int = 400
GetTableCsvBadRequestCode is the HTTP code returned for type GetTableCsvBadRequest
const GetTableCsvInternalServerErrorCode int = 500
GetTableCsvInternalServerErrorCode is the HTTP code returned for type GetTableCsvInternalServerError
const GetTableCsvOKCode int = 200
GetTableCsvOKCode is the HTTP code returned for type GetTableCsvOK
const LoginOKCode int = 200
LoginOKCode is the HTTP code returned for type LoginOK
LoginUnauthorizedCode is the HTTP code returned for type LoginUnauthorized
const PrometheusReadInternalServerErrorCode int = 500
PrometheusReadInternalServerErrorCode is the HTTP code returned for type PrometheusReadInternalServerError
const PrometheusReadOKCode int = 200
PrometheusReadOKCode is the HTTP code returned for type PrometheusReadOK
const PrometheusWriteInternalServerErrorCode int = 500
PrometheusWriteInternalServerErrorCode is the HTTP code returned for type PrometheusWriteInternalServerError
const PrometheusWriteOKCode int = 200
PrometheusWriteOKCode is the HTTP code returned for type PrometheusWriteOK
const StatusBadRequestCode int = 400
StatusBadRequestCode is the HTTP code returned for type StatusBadRequest
const StatusLivelinessInternalServerErrorCode int = 500
StatusLivelinessInternalServerErrorCode is the HTTP code returned for type StatusLivelinessInternalServerError
const StatusLivelinessOKCode int = 200
StatusLivelinessOKCode is the HTTP code returned for type StatusLivelinessOK
const StatusLivenessInternalServerErrorCode int = 500
StatusLivenessInternalServerErrorCode is the HTTP code returned for type StatusLivenessInternalServerError
const StatusLivenessOKCode int = 200
StatusLivenessOKCode is the HTTP code returned for type StatusLivenessOK
const StatusOKCode int = 200
StatusOKCode is the HTTP code returned for type StatusOK
const StatusReadinessInternalServerErrorCode int = 500
StatusReadinessInternalServerErrorCode is the HTTP code returned for type StatusReadinessInternalServerError
const StatusReadinessOKCode int = 200
StatusReadinessOKCode is the HTTP code returned for type StatusReadinessOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTableCsv ¶
type GetTableCsv struct { Context *middleware.Context Handler GetTableCsvHandler }
GetTableCsv swagger:route GET /tables/{name}.csv getTableCsv
Fetch the rows of a table between a given date range and return as csv
func NewGetTableCsv ¶
func NewGetTableCsv(ctx *middleware.Context, handler GetTableCsvHandler) *GetTableCsv
NewGetTableCsv creates a new http.Handler for the get table csv operation
func (*GetTableCsv) ServeHTTP ¶
func (o *GetTableCsv) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTableCsvBadRequest ¶
type GetTableCsvBadRequest struct { }
GetTableCsvBadRequest Bad Request.
swagger:response getTableCsvBadRequest
func NewGetTableCsvBadRequest ¶
func NewGetTableCsvBadRequest() *GetTableCsvBadRequest
NewGetTableCsvBadRequest creates GetTableCsvBadRequest with default headers values
func (*GetTableCsvBadRequest) WriteResponse ¶
func (o *GetTableCsvBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTableCsvHandler ¶
type GetTableCsvHandler interface {
Handle(GetTableCsvParams, *models.Principal) middleware.Responder
}
GetTableCsvHandler interface for that can handle valid get table csv params
type GetTableCsvHandlerFunc ¶
type GetTableCsvHandlerFunc func(GetTableCsvParams, *models.Principal) middleware.Responder
GetTableCsvHandlerFunc turns a function with the right signature into a get table csv handler
func (GetTableCsvHandlerFunc) Handle ¶
func (fn GetTableCsvHandlerFunc) Handle(params GetTableCsvParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetTableCsvInternalServerError ¶
type GetTableCsvInternalServerError struct { }
GetTableCsvInternalServerError Internal Error.
swagger:response getTableCsvInternalServerError
func NewGetTableCsvInternalServerError ¶
func NewGetTableCsvInternalServerError() *GetTableCsvInternalServerError
NewGetTableCsvInternalServerError creates GetTableCsvInternalServerError with default headers values
func (*GetTableCsvInternalServerError) WriteResponse ¶
func (o *GetTableCsvInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTableCsvOK ¶
type GetTableCsvOK struct { /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
GetTableCsvOK Successful operation
swagger:response getTableCsvOK
func NewGetTableCsvOK ¶
func NewGetTableCsvOK() *GetTableCsvOK
NewGetTableCsvOK creates GetTableCsvOK with default headers values
func (*GetTableCsvOK) SetPayload ¶
func (o *GetTableCsvOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the get table csv o k response
func (*GetTableCsvOK) WithPayload ¶
func (o *GetTableCsvOK) WithPayload(payload io.ReadCloser) *GetTableCsvOK
WithPayload adds the payload to the get table csv o k response
func (*GetTableCsvOK) WriteResponse ¶
func (o *GetTableCsvOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTableCsvParams ¶
type GetTableCsvParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: query */ End string /* Required: true In: path */ Name string /* Required: true In: query */ Start string }
GetTableCsvParams contains all the bound params for the get table csv operation typically these are obtained from a http.Request
swagger:parameters get-table-csv
func NewGetTableCsvParams ¶
func NewGetTableCsvParams() GetTableCsvParams
NewGetTableCsvParams creates a new GetTableCsvParams object
There are no default values defined in the spec.
func (*GetTableCsvParams) BindRequest ¶
func (o *GetTableCsvParams) 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 NewGetTableCsvParams() beforehand.
type GetTableCsvURL ¶
type GetTableCsvURL struct { Name string End string Start string // contains filtered or unexported fields }
GetTableCsvURL generates an URL for the get table csv operation
func (*GetTableCsvURL) Build ¶
func (o *GetTableCsvURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTableCsvURL) BuildFull ¶
func (o *GetTableCsvURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTableCsvURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTableCsvURL) SetBasePath ¶
func (o *GetTableCsvURL) 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 (*GetTableCsvURL) String ¶
func (o *GetTableCsvURL) String() string
String returns the string representation of the path with query string
func (*GetTableCsvURL) StringFull ¶
func (o *GetTableCsvURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTableCsvURL) WithBasePath ¶
func (o *GetTableCsvURL) WithBasePath(bp string) *GetTableCsvURL
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 Login ¶
type Login struct { Context *middleware.Context Handler LoginHandler }
Login swagger:route POST /login login
Login login API
func NewLogin ¶
func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login
NewLogin creates a new http.Handler for the login operation
type LoginHandler ¶
type LoginHandler interface {
Handle(LoginParams) middleware.Responder
}
LoginHandler interface for that can handle valid login params
type LoginHandlerFunc ¶
type LoginHandlerFunc func(LoginParams) middleware.Responder
LoginHandlerFunc turns a function with the right signature into a login handler
func (LoginHandlerFunc) Handle ¶
func (fn LoginHandlerFunc) Handle(params LoginParams) middleware.Responder
Handle executing the request and returning a response
type LoginOK ¶
LoginOK Successful operation
swagger:response loginOK
func (*LoginOK) SetPayload ¶
SetPayload sets the payload to the login o k response
func (*LoginOK) WithPayload ¶
WithPayload adds the payload to the login o k response
func (*LoginOK) WriteResponse ¶
func (o *LoginOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginParams ¶
type LoginParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The user's credential Required: true In: body */ Credential *models.Credential }
LoginParams contains all the bound params for the login operation typically these are obtained from a http.Request
swagger:parameters login
func NewLoginParams ¶
func NewLoginParams() LoginParams
NewLoginParams creates a new LoginParams object
There are no default values defined in the spec.
func (*LoginParams) BindRequest ¶
func (o *LoginParams) 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 NewLoginParams() beforehand.
type LoginURL ¶
type LoginURL struct {
// contains filtered or unexported fields
}
LoginURL generates an URL for the login operation
func (*LoginURL) 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 (*LoginURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*LoginURL) 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 LoginUnauthorized ¶
LoginUnauthorized Bad Request.
swagger:response loginUnauthorized
func NewLoginUnauthorized ¶
func NewLoginUnauthorized() *LoginUnauthorized
NewLoginUnauthorized creates LoginUnauthorized with default headers values
func (*LoginUnauthorized) SetPayload ¶
func (o *LoginUnauthorized) SetPayload(payload *models.QdbError)
SetPayload sets the payload to the login unauthorized response
func (*LoginUnauthorized) WithPayload ¶
func (o *LoginUnauthorized) WithPayload(payload *models.QdbError) *LoginUnauthorized
WithPayload adds the payload to the login unauthorized response
func (*LoginUnauthorized) WriteResponse ¶
func (o *LoginUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PrometheusRead ¶
type PrometheusRead struct { Context *middleware.Context Handler PrometheusReadHandler }
PrometheusRead swagger:route POST /prometheus/read prometheusRead
The read endpoint for remote Prometheus storage
func NewPrometheusRead ¶
func NewPrometheusRead(ctx *middleware.Context, handler PrometheusReadHandler) *PrometheusRead
NewPrometheusRead creates a new http.Handler for the prometheus read operation
func (*PrometheusRead) ServeHTTP ¶
func (o *PrometheusRead) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PrometheusReadHandler ¶
type PrometheusReadHandler interface {
Handle(PrometheusReadParams) middleware.Responder
}
PrometheusReadHandler interface for that can handle valid prometheus read params
type PrometheusReadHandlerFunc ¶
type PrometheusReadHandlerFunc func(PrometheusReadParams) middleware.Responder
PrometheusReadHandlerFunc turns a function with the right signature into a prometheus read handler
func (PrometheusReadHandlerFunc) Handle ¶
func (fn PrometheusReadHandlerFunc) Handle(params PrometheusReadParams) middleware.Responder
Handle executing the request and returning a response
type PrometheusReadInternalServerError ¶
type PrometheusReadInternalServerError struct { /* In: Body */ Payload *models.QdbError `json:"body,omitempty"` }
PrometheusReadInternalServerError Internal Error.
swagger:response prometheusReadInternalServerError
func NewPrometheusReadInternalServerError ¶
func NewPrometheusReadInternalServerError() *PrometheusReadInternalServerError
NewPrometheusReadInternalServerError creates PrometheusReadInternalServerError with default headers values
func (*PrometheusReadInternalServerError) SetPayload ¶
func (o *PrometheusReadInternalServerError) SetPayload(payload *models.QdbError)
SetPayload sets the payload to the prometheus read internal server error response
func (*PrometheusReadInternalServerError) WithPayload ¶
func (o *PrometheusReadInternalServerError) WithPayload(payload *models.QdbError) *PrometheusReadInternalServerError
WithPayload adds the payload to the prometheus read internal server error response
func (*PrometheusReadInternalServerError) WriteResponse ¶
func (o *PrometheusReadInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PrometheusReadOK ¶
type PrometheusReadOK struct { /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
PrometheusReadOK OK
swagger:response prometheusReadOK
func NewPrometheusReadOK ¶
func NewPrometheusReadOK() *PrometheusReadOK
NewPrometheusReadOK creates PrometheusReadOK with default headers values
func (*PrometheusReadOK) SetPayload ¶
func (o *PrometheusReadOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the prometheus read o k response
func (*PrometheusReadOK) WithPayload ¶
func (o *PrometheusReadOK) WithPayload(payload io.ReadCloser) *PrometheusReadOK
WithPayload adds the payload to the prometheus read o k response
func (*PrometheusReadOK) WriteResponse ¶
func (o *PrometheusReadOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PrometheusReadParams ¶
type PrometheusReadParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The samples in snappy-encoded protocol buffer format sent from Prometheus Required: true In: body */ Query io.ReadCloser }
PrometheusReadParams contains all the bound params for the prometheus read operation typically these are obtained from a http.Request
swagger:parameters prometheusRead
func NewPrometheusReadParams ¶
func NewPrometheusReadParams() PrometheusReadParams
NewPrometheusReadParams creates a new PrometheusReadParams object
There are no default values defined in the spec.
func (*PrometheusReadParams) BindRequest ¶
func (o *PrometheusReadParams) 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 NewPrometheusReadParams() beforehand.
type PrometheusReadURL ¶
type PrometheusReadURL struct {
// contains filtered or unexported fields
}
PrometheusReadURL generates an URL for the prometheus read operation
func (*PrometheusReadURL) Build ¶
func (o *PrometheusReadURL) Build() (*url.URL, error)
Build a url path and query string
func (*PrometheusReadURL) BuildFull ¶
func (o *PrometheusReadURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PrometheusReadURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PrometheusReadURL) SetBasePath ¶
func (o *PrometheusReadURL) 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 (*PrometheusReadURL) String ¶
func (o *PrometheusReadURL) String() string
String returns the string representation of the path with query string
func (*PrometheusReadURL) StringFull ¶
func (o *PrometheusReadURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PrometheusReadURL) WithBasePath ¶
func (o *PrometheusReadURL) WithBasePath(bp string) *PrometheusReadURL
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 PrometheusWrite ¶
type PrometheusWrite struct { Context *middleware.Context Handler PrometheusWriteHandler }
PrometheusWrite swagger:route POST /prometheus/write prometheusWrite
The write endpoint for remote Prometheus storage
func NewPrometheusWrite ¶
func NewPrometheusWrite(ctx *middleware.Context, handler PrometheusWriteHandler) *PrometheusWrite
NewPrometheusWrite creates a new http.Handler for the prometheus write operation
func (*PrometheusWrite) ServeHTTP ¶
func (o *PrometheusWrite) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PrometheusWriteHandler ¶
type PrometheusWriteHandler interface {
Handle(PrometheusWriteParams) middleware.Responder
}
PrometheusWriteHandler interface for that can handle valid prometheus write params
type PrometheusWriteHandlerFunc ¶
type PrometheusWriteHandlerFunc func(PrometheusWriteParams) middleware.Responder
PrometheusWriteHandlerFunc turns a function with the right signature into a prometheus write handler
func (PrometheusWriteHandlerFunc) Handle ¶
func (fn PrometheusWriteHandlerFunc) Handle(params PrometheusWriteParams) middleware.Responder
Handle executing the request and returning a response
type PrometheusWriteInternalServerError ¶
type PrometheusWriteInternalServerError struct { /* In: Body */ Payload *models.QdbError `json:"body,omitempty"` }
PrometheusWriteInternalServerError Internal Error.
swagger:response prometheusWriteInternalServerError
func NewPrometheusWriteInternalServerError ¶
func NewPrometheusWriteInternalServerError() *PrometheusWriteInternalServerError
NewPrometheusWriteInternalServerError creates PrometheusWriteInternalServerError with default headers values
func (*PrometheusWriteInternalServerError) SetPayload ¶
func (o *PrometheusWriteInternalServerError) SetPayload(payload *models.QdbError)
SetPayload sets the payload to the prometheus write internal server error response
func (*PrometheusWriteInternalServerError) WithPayload ¶
func (o *PrometheusWriteInternalServerError) WithPayload(payload *models.QdbError) *PrometheusWriteInternalServerError
WithPayload adds the payload to the prometheus write internal server error response
func (*PrometheusWriteInternalServerError) WriteResponse ¶
func (o *PrometheusWriteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PrometheusWriteOK ¶
type PrometheusWriteOK struct { }
PrometheusWriteOK OK
swagger:response prometheusWriteOK
func NewPrometheusWriteOK ¶
func NewPrometheusWriteOK() *PrometheusWriteOK
NewPrometheusWriteOK creates PrometheusWriteOK with default headers values
func (*PrometheusWriteOK) WriteResponse ¶
func (o *PrometheusWriteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PrometheusWriteParams ¶
type PrometheusWriteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The samples in snappy-encoded protocol buffer format sent from Prometheus Required: true In: body */ Timeseries io.ReadCloser }
PrometheusWriteParams contains all the bound params for the prometheus write operation typically these are obtained from a http.Request
swagger:parameters prometheusWrite
func NewPrometheusWriteParams ¶
func NewPrometheusWriteParams() PrometheusWriteParams
NewPrometheusWriteParams creates a new PrometheusWriteParams object
There are no default values defined in the spec.
func (*PrometheusWriteParams) BindRequest ¶
func (o *PrometheusWriteParams) 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 NewPrometheusWriteParams() beforehand.
type PrometheusWriteURL ¶
type PrometheusWriteURL struct {
// contains filtered or unexported fields
}
PrometheusWriteURL generates an URL for the prometheus write operation
func (*PrometheusWriteURL) Build ¶
func (o *PrometheusWriteURL) Build() (*url.URL, error)
Build a url path and query string
func (*PrometheusWriteURL) BuildFull ¶
func (o *PrometheusWriteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PrometheusWriteURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PrometheusWriteURL) SetBasePath ¶
func (o *PrometheusWriteURL) 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 (*PrometheusWriteURL) String ¶
func (o *PrometheusWriteURL) String() string
String returns the string representation of the path with query string
func (*PrometheusWriteURL) StringFull ¶
func (o *PrometheusWriteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PrometheusWriteURL) WithBasePath ¶
func (o *PrometheusWriteURL) WithBasePath(bp string) *PrometheusWriteURL
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 QdbAPIRestAPI ¶
type QdbAPIRestAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator // BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator // JSONConsumer registers a consumer for the following mime types: // - application/json JSONConsumer runtime.Consumer // ProtobufConsumer registers a consumer for the following mime types: // - application/x-protobuf ProtobufConsumer runtime.Consumer // CsvProducer registers a producer for the following mime types: // - text/csv CsvProducer runtime.Producer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // ProtobufProducer registers a producer for the following mime types: // - application/x-protobuf ProtobufProducer runtime.Producer // BearerAuth registers a function that takes a token and returns a principal // it performs authentication based on an api key Authorization provided in the header BearerAuth func(string) (*models.Principal, error) // URLParamAuth registers a function that takes a token and returns a principal // it performs authentication based on an api key token provided in the query URLParamAuth func(string) (*models.Principal, error) // APIAuthorizer provides access control (ACL/RBAC/ABAC) by providing access to the request and authenticated principal APIAuthorizer runtime.Authorizer // ClusterGetClusterHandler sets the operation handler for the get cluster operation ClusterGetClusterHandler cluster.GetClusterHandler // OptionGetMaxInBufferSizeHandler sets the operation handler for the get max in buffer size operation OptionGetMaxInBufferSizeHandler option.GetMaxInBufferSizeHandler // ClusterGetNodeHandler sets the operation handler for the get node operation ClusterGetNodeHandler cluster.GetNodeHandler // OptionGetParallelismHandler sets the operation handler for the get parallelism operation OptionGetParallelismHandler option.GetParallelismHandler // GetTableCsvHandler sets the operation handler for the get table csv operation GetTableCsvHandler GetTableCsvHandler // TagsGetTagsHandler sets the operation handler for the get tags operation TagsGetTagsHandler tags.GetTagsHandler // LoginHandler sets the operation handler for the login operation LoginHandler LoginHandler // QueryPostQueryHandler sets the operation handler for the post query operation QueryPostQueryHandler query.PostQueryHandler // PrometheusReadHandler sets the operation handler for the prometheus read operation PrometheusReadHandler PrometheusReadHandler // PrometheusWriteHandler sets the operation handler for the prometheus write operation PrometheusWriteHandler PrometheusWriteHandler // StatusLivenessHandler sets the operation handler for the status liveness operation StatusLivenessHandler StatusLivenessHandler // StatusReadinessHandler sets the operation handler for the status readiness operation StatusReadinessHandler StatusReadinessHandler // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // PreServerShutdown is called before the HTTP(S) server is shutdown // This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic PreServerShutdown func() // ServerShutdown is called when the HTTP(S) server is shut down and done // handling all active connections and does not accept connections any more ServerShutdown func() // Custom command line argument groups with their descriptions CommandLineOptionsGroups []swag.CommandLineOptionsGroup // User defined logger function. Logger func(string, ...interface{}) // contains filtered or unexported fields }
QdbAPIRestAPI Find out more at https://doc.quasardb.net
func NewQdbAPIRestAPI ¶
func NewQdbAPIRestAPI(spec *loads.Document) *QdbAPIRestAPI
NewQdbAPIRestAPI creates a new QdbAPIRest instance
func (*QdbAPIRestAPI) AddMiddlewareFor ¶
func (o *QdbAPIRestAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*QdbAPIRestAPI) AuthenticatorsFor ¶
func (o *QdbAPIRestAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*QdbAPIRestAPI) Authorizer ¶
func (o *QdbAPIRestAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*QdbAPIRestAPI) ConsumersFor ¶
func (o *QdbAPIRestAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*QdbAPIRestAPI) Context ¶
func (o *QdbAPIRestAPI) Context() *middleware.Context
Context returns the middleware context for the qdb API rest API
func (*QdbAPIRestAPI) DefaultConsumes ¶
func (o *QdbAPIRestAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*QdbAPIRestAPI) DefaultProduces ¶
func (o *QdbAPIRestAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*QdbAPIRestAPI) Formats ¶
func (o *QdbAPIRestAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*QdbAPIRestAPI) HandlerFor ¶
func (o *QdbAPIRestAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*QdbAPIRestAPI) Init ¶
func (o *QdbAPIRestAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*QdbAPIRestAPI) ProducersFor ¶
func (o *QdbAPIRestAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*QdbAPIRestAPI) RegisterConsumer ¶
func (o *QdbAPIRestAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*QdbAPIRestAPI) RegisterFormat ¶
func (o *QdbAPIRestAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*QdbAPIRestAPI) RegisterProducer ¶
func (o *QdbAPIRestAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*QdbAPIRestAPI) Serve ¶
func (o *QdbAPIRestAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*QdbAPIRestAPI) ServeErrorFor ¶
func (o *QdbAPIRestAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*QdbAPIRestAPI) SetDefaultConsumes ¶
func (o *QdbAPIRestAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*QdbAPIRestAPI) SetDefaultProduces ¶
func (o *QdbAPIRestAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*QdbAPIRestAPI) SetSpec ¶
func (o *QdbAPIRestAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*QdbAPIRestAPI) UseRedoc ¶
func (o *QdbAPIRestAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*QdbAPIRestAPI) UseSwaggerUI ¶
func (o *QdbAPIRestAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*QdbAPIRestAPI) Validate ¶
func (o *QdbAPIRestAPI) Validate() error
Validate validates the registrations in the QdbAPIRestAPI
type Status ¶
type Status struct { Context *middleware.Context Handler StatusHandler }
Status swagger:route GET /status status
Status status API
func NewStatus ¶
func NewStatus(ctx *middleware.Context, handler StatusHandler) *Status
NewStatus creates a new http.Handler for the status operation
type StatusBadRequest ¶
StatusBadRequest Bad Request.
swagger:response statusBadRequest
func NewStatusBadRequest ¶
func NewStatusBadRequest() *StatusBadRequest
NewStatusBadRequest creates StatusBadRequest with default headers values
func (*StatusBadRequest) SetPayload ¶
func (o *StatusBadRequest) SetPayload(payload *models.QdbError)
SetPayload sets the payload to the status bad request response
func (*StatusBadRequest) WithPayload ¶
func (o *StatusBadRequest) WithPayload(payload *models.QdbError) *StatusBadRequest
WithPayload adds the payload to the status bad request response
func (*StatusBadRequest) WriteResponse ¶
func (o *StatusBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StatusHandler ¶
type StatusHandler interface {
Handle(StatusParams) middleware.Responder
}
StatusHandler interface for that can handle valid status params
type StatusHandlerFunc ¶
type StatusHandlerFunc func(StatusParams) middleware.Responder
StatusHandlerFunc turns a function with the right signature into a status handler
func (StatusHandlerFunc) Handle ¶
func (fn StatusHandlerFunc) Handle(params StatusParams) middleware.Responder
Handle executing the request and returning a response
type StatusLiveliness ¶
type StatusLiveliness struct { Context *middleware.Context Handler StatusLivelinessHandler }
StatusLiveliness swagger:route GET /status/liveliness statusLiveliness
StatusLiveliness status liveliness API
func NewStatusLiveliness ¶
func NewStatusLiveliness(ctx *middleware.Context, handler StatusLivelinessHandler) *StatusLiveliness
NewStatusLiveliness creates a new http.Handler for the status liveliness operation
func (*StatusLiveliness) ServeHTTP ¶
func (o *StatusLiveliness) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type StatusLivelinessHandler ¶
type StatusLivelinessHandler interface {
Handle(StatusLivelinessParams) middleware.Responder
}
StatusLivelinessHandler interface for that can handle valid status liveliness params
type StatusLivelinessHandlerFunc ¶
type StatusLivelinessHandlerFunc func(StatusLivelinessParams) middleware.Responder
StatusLivelinessHandlerFunc turns a function with the right signature into a status liveliness handler
func (StatusLivelinessHandlerFunc) Handle ¶
func (fn StatusLivelinessHandlerFunc) Handle(params StatusLivelinessParams) middleware.Responder
Handle executing the request and returning a response
type StatusLivelinessInternalServerError ¶
type StatusLivelinessInternalServerError struct { /* In: Body */ Payload *models.QdbError `json:"body,omitempty"` }
StatusLivelinessInternalServerError Bad Request.
swagger:response statusLivelinessInternalServerError
func NewStatusLivelinessInternalServerError ¶
func NewStatusLivelinessInternalServerError() *StatusLivelinessInternalServerError
NewStatusLivelinessInternalServerError creates StatusLivelinessInternalServerError with default headers values
func (*StatusLivelinessInternalServerError) SetPayload ¶
func (o *StatusLivelinessInternalServerError) SetPayload(payload *models.QdbError)
SetPayload sets the payload to the status liveliness internal server error response
func (*StatusLivelinessInternalServerError) WithPayload ¶
func (o *StatusLivelinessInternalServerError) WithPayload(payload *models.QdbError) *StatusLivelinessInternalServerError
WithPayload adds the payload to the status liveliness internal server error response
func (*StatusLivelinessInternalServerError) WriteResponse ¶
func (o *StatusLivelinessInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StatusLivelinessOK ¶
type StatusLivelinessOK struct { }
StatusLivelinessOK Successful operation
swagger:response statusLivelinessOK
func NewStatusLivelinessOK ¶
func NewStatusLivelinessOK() *StatusLivelinessOK
NewStatusLivelinessOK creates StatusLivelinessOK with default headers values
func (*StatusLivelinessOK) WriteResponse ¶
func (o *StatusLivelinessOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StatusLivelinessParams ¶
StatusLivelinessParams contains all the bound params for the status liveliness operation typically these are obtained from a http.Request
swagger:parameters status-liveliness
func NewStatusLivelinessParams ¶
func NewStatusLivelinessParams() StatusLivelinessParams
NewStatusLivelinessParams creates a new StatusLivelinessParams object
There are no default values defined in the spec.
func (*StatusLivelinessParams) BindRequest ¶
func (o *StatusLivelinessParams) 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 NewStatusLivelinessParams() beforehand.
type StatusLivelinessURL ¶
type StatusLivelinessURL struct {
// contains filtered or unexported fields
}
StatusLivelinessURL generates an URL for the status liveliness operation
func (*StatusLivelinessURL) Build ¶
func (o *StatusLivelinessURL) Build() (*url.URL, error)
Build a url path and query string
func (*StatusLivelinessURL) BuildFull ¶
func (o *StatusLivelinessURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*StatusLivelinessURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*StatusLivelinessURL) SetBasePath ¶
func (o *StatusLivelinessURL) 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 (*StatusLivelinessURL) String ¶
func (o *StatusLivelinessURL) String() string
String returns the string representation of the path with query string
func (*StatusLivelinessURL) StringFull ¶
func (o *StatusLivelinessURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*StatusLivelinessURL) WithBasePath ¶
func (o *StatusLivelinessURL) WithBasePath(bp string) *StatusLivelinessURL
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 StatusLiveness ¶
type StatusLiveness struct { Context *middleware.Context Handler StatusLivenessHandler }
StatusLiveness swagger:route GET /status/liveness statusLiveness
StatusLiveness status liveness API
func NewStatusLiveness ¶
func NewStatusLiveness(ctx *middleware.Context, handler StatusLivenessHandler) *StatusLiveness
NewStatusLiveness creates a new http.Handler for the status liveness operation
func (*StatusLiveness) ServeHTTP ¶
func (o *StatusLiveness) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type StatusLivenessHandler ¶
type StatusLivenessHandler interface {
Handle(StatusLivenessParams) middleware.Responder
}
StatusLivenessHandler interface for that can handle valid status liveness params
type StatusLivenessHandlerFunc ¶
type StatusLivenessHandlerFunc func(StatusLivenessParams) middleware.Responder
StatusLivenessHandlerFunc turns a function with the right signature into a status liveness handler
func (StatusLivenessHandlerFunc) Handle ¶
func (fn StatusLivenessHandlerFunc) Handle(params StatusLivenessParams) middleware.Responder
Handle executing the request and returning a response
type StatusLivenessInternalServerError ¶
type StatusLivenessInternalServerError struct { /* In: Body */ Payload *models.QdbError `json:"body,omitempty"` }
StatusLivenessInternalServerError Bad Request.
swagger:response statusLivenessInternalServerError
func NewStatusLivenessInternalServerError ¶
func NewStatusLivenessInternalServerError() *StatusLivenessInternalServerError
NewStatusLivenessInternalServerError creates StatusLivenessInternalServerError with default headers values
func (*StatusLivenessInternalServerError) SetPayload ¶
func (o *StatusLivenessInternalServerError) SetPayload(payload *models.QdbError)
SetPayload sets the payload to the status liveness internal server error response
func (*StatusLivenessInternalServerError) WithPayload ¶
func (o *StatusLivenessInternalServerError) WithPayload(payload *models.QdbError) *StatusLivenessInternalServerError
WithPayload adds the payload to the status liveness internal server error response
func (*StatusLivenessInternalServerError) WriteResponse ¶
func (o *StatusLivenessInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StatusLivenessOK ¶
type StatusLivenessOK struct { }
StatusLivenessOK Successful operation
swagger:response statusLivenessOK
func NewStatusLivenessOK ¶
func NewStatusLivenessOK() *StatusLivenessOK
NewStatusLivenessOK creates StatusLivenessOK with default headers values
func (*StatusLivenessOK) WriteResponse ¶
func (o *StatusLivenessOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StatusLivenessParams ¶
StatusLivenessParams contains all the bound params for the status liveness operation typically these are obtained from a http.Request
swagger:parameters status-liveness
func NewStatusLivenessParams ¶
func NewStatusLivenessParams() StatusLivenessParams
NewStatusLivenessParams creates a new StatusLivenessParams object
There are no default values defined in the spec.
func (*StatusLivenessParams) BindRequest ¶
func (o *StatusLivenessParams) 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 NewStatusLivenessParams() beforehand.
type StatusLivenessURL ¶
type StatusLivenessURL struct {
// contains filtered or unexported fields
}
StatusLivenessURL generates an URL for the status liveness operation
func (*StatusLivenessURL) Build ¶
func (o *StatusLivenessURL) Build() (*url.URL, error)
Build a url path and query string
func (*StatusLivenessURL) BuildFull ¶
func (o *StatusLivenessURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*StatusLivenessURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*StatusLivenessURL) SetBasePath ¶
func (o *StatusLivenessURL) 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 (*StatusLivenessURL) String ¶
func (o *StatusLivenessURL) String() string
String returns the string representation of the path with query string
func (*StatusLivenessURL) StringFull ¶
func (o *StatusLivenessURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*StatusLivenessURL) WithBasePath ¶
func (o *StatusLivenessURL) WithBasePath(bp string) *StatusLivenessURL
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 StatusOK ¶
type StatusOK struct { }
StatusOK Successful operation
swagger:response statusOK
func NewStatusOK ¶
func NewStatusOK() *StatusOK
NewStatusOK creates StatusOK with default headers values
func (*StatusOK) WriteResponse ¶
func (o *StatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StatusParams ¶
StatusParams contains all the bound params for the status operation typically these are obtained from a http.Request
swagger:parameters status
func NewStatusParams ¶
func NewStatusParams() StatusParams
NewStatusParams creates a new StatusParams object
There are no default values defined in the spec.
func (*StatusParams) BindRequest ¶
func (o *StatusParams) 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 NewStatusParams() beforehand.
type StatusReadiness ¶
type StatusReadiness struct { Context *middleware.Context Handler StatusReadinessHandler }
StatusReadiness swagger:route GET /status/readiness statusReadiness
StatusReadiness status readiness API
func NewStatusReadiness ¶
func NewStatusReadiness(ctx *middleware.Context, handler StatusReadinessHandler) *StatusReadiness
NewStatusReadiness creates a new http.Handler for the status readiness operation
func (*StatusReadiness) ServeHTTP ¶
func (o *StatusReadiness) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type StatusReadinessHandler ¶
type StatusReadinessHandler interface {
Handle(StatusReadinessParams) middleware.Responder
}
StatusReadinessHandler interface for that can handle valid status readiness params
type StatusReadinessHandlerFunc ¶
type StatusReadinessHandlerFunc func(StatusReadinessParams) middleware.Responder
StatusReadinessHandlerFunc turns a function with the right signature into a status readiness handler
func (StatusReadinessHandlerFunc) Handle ¶
func (fn StatusReadinessHandlerFunc) Handle(params StatusReadinessParams) middleware.Responder
Handle executing the request and returning a response
type StatusReadinessInternalServerError ¶
type StatusReadinessInternalServerError struct { /* In: Body */ Payload *models.QdbError `json:"body,omitempty"` }
StatusReadinessInternalServerError Bad Request.
swagger:response statusReadinessInternalServerError
func NewStatusReadinessInternalServerError ¶
func NewStatusReadinessInternalServerError() *StatusReadinessInternalServerError
NewStatusReadinessInternalServerError creates StatusReadinessInternalServerError with default headers values
func (*StatusReadinessInternalServerError) SetPayload ¶
func (o *StatusReadinessInternalServerError) SetPayload(payload *models.QdbError)
SetPayload sets the payload to the status readiness internal server error response
func (*StatusReadinessInternalServerError) WithPayload ¶
func (o *StatusReadinessInternalServerError) WithPayload(payload *models.QdbError) *StatusReadinessInternalServerError
WithPayload adds the payload to the status readiness internal server error response
func (*StatusReadinessInternalServerError) WriteResponse ¶
func (o *StatusReadinessInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StatusReadinessOK ¶
type StatusReadinessOK struct { }
StatusReadinessOK Successful operation
swagger:response statusReadinessOK
func NewStatusReadinessOK ¶
func NewStatusReadinessOK() *StatusReadinessOK
NewStatusReadinessOK creates StatusReadinessOK with default headers values
func (*StatusReadinessOK) WriteResponse ¶
func (o *StatusReadinessOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type StatusReadinessParams ¶
StatusReadinessParams contains all the bound params for the status readiness operation typically these are obtained from a http.Request
swagger:parameters status-readiness
func NewStatusReadinessParams ¶
func NewStatusReadinessParams() StatusReadinessParams
NewStatusReadinessParams creates a new StatusReadinessParams object
There are no default values defined in the spec.
func (*StatusReadinessParams) BindRequest ¶
func (o *StatusReadinessParams) 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 NewStatusReadinessParams() beforehand.
type StatusReadinessURL ¶
type StatusReadinessURL struct {
// contains filtered or unexported fields
}
StatusReadinessURL generates an URL for the status readiness operation
func (*StatusReadinessURL) Build ¶
func (o *StatusReadinessURL) Build() (*url.URL, error)
Build a url path and query string
func (*StatusReadinessURL) BuildFull ¶
func (o *StatusReadinessURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*StatusReadinessURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*StatusReadinessURL) SetBasePath ¶
func (o *StatusReadinessURL) 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 (*StatusReadinessURL) String ¶
func (o *StatusReadinessURL) String() string
String returns the string representation of the path with query string
func (*StatusReadinessURL) StringFull ¶
func (o *StatusReadinessURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*StatusReadinessURL) WithBasePath ¶
func (o *StatusReadinessURL) WithBasePath(bp string) *StatusReadinessURL
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 StatusURL ¶
type StatusURL struct {
// contains filtered or unexported fields
}
StatusURL generates an URL for the status operation
func (*StatusURL) 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 (*StatusURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*StatusURL) 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
Source Files ¶
- get_table_csv.go
- get_table_csv_parameters.go
- get_table_csv_responses.go
- get_table_csv_urlbuilder.go
- login.go
- login_parameters.go
- login_responses.go
- login_urlbuilder.go
- prometheus_read.go
- prometheus_read_parameters.go
- prometheus_read_responses.go
- prometheus_read_urlbuilder.go
- prometheus_write.go
- prometheus_write_parameters.go
- prometheus_write_responses.go
- prometheus_write_urlbuilder.go
- qdb_api_rest_api.go
- status.go
- status_liveliness.go
- status_liveliness_parameters.go
- status_liveliness_responses.go
- status_liveliness_urlbuilder.go
- status_liveness.go
- status_liveness_parameters.go
- status_liveness_responses.go
- status_liveness_urlbuilder.go
- status_parameters.go
- status_readiness.go
- status_readiness_parameters.go
- status_readiness_responses.go
- status_readiness_urlbuilder.go
- status_responses.go
- status_urlbuilder.go