Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEndBeforeStart = httpgrpc.Errorf(http.StatusBadRequest, "%s", "end timestamp must not be before start time") ErrNegativeStep = httpgrpc.Errorf(http.StatusBadRequest, "%s", "zero or negative query resolution step widths are not accepted. Try a positive integer") ErrStepTooSmall = httpgrpc.Errorf(http.StatusBadRequest, "%s", "exceeded maximum resolution of 11,000 points per timeseries. Try decreasing the query resolution (?step=XX)") )
Functions ¶
func DecorateWithParamName ¶
Types ¶
type CompressionHandler ¶
CompressionHandler is a wrapper around http.Handler which adds suitable response compression based on the client's Accept-Encoding headers.
func (CompressionHandler) ServeHTTP ¶
func (c CompressionHandler) ServeHTTP(writer http.ResponseWriter, req *http.Request)
ServeHTTP adds compression to the original http.Handler's ServeHTTP() method.
type QueryAPI ¶
func NewQueryAPI ¶
func NewQueryAPI( qe engine.QueryEngine, q storage.SampleAndChunkQueryable, statsRenderer v1.StatsRenderer, logger log.Logger, codecs []v1.Codec, CORSOrigin *regexp.Regexp, ) *QueryAPI
func (*QueryAPI) InstantQueryHandler ¶
func (*QueryAPI) RangeQueryHandler ¶
func (*QueryAPI) Wrap ¶
func (q *QueryAPI) Wrap(f apiFunc) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.