MCPcopy Index your code
hub / github.com/cortexproject/cortex / NewSampleAndChunkQueryable

Function NewSampleAndChunkQueryable

pkg/querier/querier.go:271–273  ·  view source on GitHub ↗

NewSampleAndChunkQueryable creates a SampleAndChunkQueryable from a Queryable with a ChunkQueryable stub, that errors once it gets called.

(q storage.Queryable)

Source from the content-addressed store, hash-verified

269// NewSampleAndChunkQueryable creates a SampleAndChunkQueryable from a
270// Queryable with a ChunkQueryable stub, that errors once it gets called.
271func NewSampleAndChunkQueryable(q storage.Queryable) storage.SampleAndChunkQueryable {
272 return &sampleAndChunkQueryable{q}
273}
274
275type sampleAndChunkQueryable struct {
276 storage.Queryable

Callers 2

initTenantFederationMethod · 0.92
NewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected