Versions in this module Expand all Collapse all v2 v2.5.2 Apr 27, 2022 Changes in this version + const ChunkLen + const ErrDataLength + const ErrInvalidChecksum + const ErrMetadataLength + const ErrSliceChunkOverflow + const ErrSliceNoDataInRange + const ErrSliceOutOfRange + const ErrWrongMetadata + var DefaultEncoding = Bigchunk + func MustRegisterEncoding(enc Encoding, name string, f func() Data) + type Chunk struct + Data Data + Encoding Encoding + Metric labels.Labels + func NewChunk(userID string, fp model.Fingerprint, metric labels.Labels, c Data, ...) Chunk + func ParseExternalKey(userID, externalKey string) (Chunk, error) + func (c *Chunk) Decode(decodeContext *DecodeContext, input []byte) error + func (c *Chunk) Encode() error + func (c *Chunk) EncodeTo(buf *bytes.Buffer) error + func (c *Chunk) Encoded() ([]byte, error) + type Config struct + func (Config) RegisterFlags(f *flag.FlagSet) + func (Config) Validate() error + type Data interface + Add func(sample model.SamplePair) (Data, error) + Encoding func() Encoding + Marshal func(io.Writer) error + Rebound func(start, end model.Time) (Data, error) + Size func() int + UnmarshalFromBuf func([]byte) error + Utilization func() float64 + func New() Data + func NewForEncoding(encoding Encoding) (Data, error) + type DecodeContext struct + func NewDecodeContext() *DecodeContext + type Encoding byte + const Bigchunk + func (e *Encoding) Set(s string) error + func (e Encoding) String() string + type Filterer interface + ShouldFilter func(metric labels.Labels) bool + type RequestChunkFilterer interface + ForRequest func(ctx context.Context) Filterer