MCPcopy
hub / github.com/prometheus/prometheus / Reader

Struct Reader

tsdb/chunks/chunks.go:635–642  ·  view source on GitHub ↗

Reader implements a ChunkReader for a serialized byte stream of series data.

Source from the content-addressed store, hash-verified

633// Reader implements a ChunkReader for a serialized byte stream
634// of series data.
635type Reader struct {
636 // The underlying bytes holding the encoded series data.
637 // Each slice holds the data for a different segment.
638 bs []ByteSlice
639 cs []io.Closer // Closers for resources behind the byte slices.
640 size int64 // The total size of bytes in the reader.
641 pool chunkenc.Pool
642}
643
644func newReader(bs []ByteSlice, cs []io.Closer, pool chunkenc.Pool) (*Reader, error) {
645 cr := Reader{pool: pool, bs: bs, cs: cs}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected