Versions in this module Expand all Collapse all v2 v2.13.1 Oct 8, 2023 Changes in this version + const ChunksFormatVersionSize + const MagicChunks + const MagicChunksSize + func MergeChunks(a, b chunkenc.Chunk) (*chunkenc.XORChunk, error) + type ByteSlice interface + Len func() int + Range func(start, end int) []byte + type Meta struct + Chunk chunkenc.Chunk + MaxTime int64 + MinTime int64 + Ref uint64 + func MergeOverlappingChunks(chks []Meta) ([]Meta, error) + func (cm *Meta) OverlapsClosedInterval(mint, maxt int64) bool + type Reader struct + func NewDirReader(dir string, pool chunkenc.Pool) (*Reader, error) + func (s *Reader) Chunk(ref uint64) (chunkenc.Chunk, error) + func (s *Reader) Close() error + func (s *Reader) Size() int64 + type Writer struct + func NewWriter(dir string) (*Writer, error) + func (w *Writer) Close() error + func (w *Writer) WriteChunks(chks ...Meta) error