package
1.19.0
Repository: https://github.com/cortexproject/cortex.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
DoRequests executes a list of requests in parallel.
No description provided by the author
No description provided by the author
InstrumentMiddleware can be inserted into the middleware chain to expose timing information.
Adapted from https://github.com/prometheus/client_golang/blob/4b158abea9470f75b6f07460cdc2189b91914562/api/prometheus/v1/api.go#L137.
MergeMiddlewares produces a middleware that applies multiple middleware in turn; ie Merge(f,g,h).Wrap(handler) == f.Wrap(g.Wrap(h.Wrap(handler))).
MergeResponse merges multiple Response into one.
NewEmptyPrometheusResponse returns an empty successful Prometheus query range response.
NewInstrumentMiddlewareMetrics makes a new InstrumentMiddlewareMetrics.
No description provided by the author
NewRoundTripper merges a set of middlewares into an handler, then inject it into the `next` roundtripper using the codec to translate requests and responses.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SubQueryStepSizeCheck ensures the query doesn't contain too small step size in subqueries.
No description provided by the author
No description provided by the author
Adapted from https://github.com/prometheus/client_golang/blob/4b158abea9470f75b6f07460cdc2189b91914562/api/prometheus/v1/api.go#L84.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InstrumentMiddlewareMetrics holds the metrics tracked by InstrumentMiddleware.
No description provided by the author
NoopCollector is a noop collector that can be used as placeholder when no metric should tracked by the instrumentation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RequestResponse contains a request response and the respective request that was used.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Buffer can be used to read a response body.
Codec is used to encode/decode query range requests and responses so they can be passed down to middlewares.
Handler is like http.Handle, but specifically for Prometheus query_range calls.
Limits allows us to specify per-tenant runtime limits on the behavior of the query handling code.
Merger is used by middlewares making multiple requests to merge back all responses into a single one.
Middleware is a higher order Handler.
Request represents a query range request that can be process by middlewares.
Response represents a query range response.

# Type aliases

No description provided by the author
No description provided by the author
HandlerFunc is like http.HandlerFunc, but for Handler.
MiddlewareFunc is like http.HandlerFunc, but for Middleware.
RoundTripFunc is to http.RoundTripper what http.HandlerFunc is to http.Handler.
Tripperware is a signature for all http client-side middleware.