Versions in this module Expand all Collapse all v0 v0.37.1 Jun 6, 2022 v0.37.0 Jun 6, 2022 Changes in this version + var ErrNotFound = errors.New("not found") + type Decoder struct + func (d *Decoder) Exemplars(rec []byte, exemplars []RefExemplar) ([]RefExemplar, error) + func (d *Decoder) ExemplarsFromBuffer(dec *encoding.Decbuf, exemplars []RefExemplar) ([]RefExemplar, error) + func (d *Decoder) Samples(rec []byte, samples []RefSample) ([]RefSample, error) + func (d *Decoder) Series(rec []byte, series []RefSeries) ([]RefSeries, error) + func (d *Decoder) Tombstones(rec []byte, tstones []tombstones.Stone) ([]tombstones.Stone, error) + func (d *Decoder) Type(rec []byte) Type + type Encoder struct + func (e *Encoder) EncodeExemplarsIntoBuffer(exemplars []RefExemplar, buf *encoding.Encbuf) + func (e *Encoder) Exemplars(exemplars []RefExemplar, b []byte) []byte + func (e *Encoder) Samples(samples []RefSample, b []byte) []byte + func (e *Encoder) Series(series []RefSeries, b []byte) []byte + func (e *Encoder) Tombstones(tstones []tombstones.Stone, b []byte) []byte + type RefExemplar struct + Labels labels.Labels + Ref chunks.HeadSeriesRef + T int64 + V float64 + type RefSample struct + Ref chunks.HeadSeriesRef + T int64 + V float64 + type RefSeries struct + Labels labels.Labels + Ref chunks.HeadSeriesRef + type Type uint8 + const Exemplars + const Samples + const Series + const Tombstones + const Unknown