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 + const MagicTombstone + const TombstonesFilename + func Encode(tr Reader) ([]byte, error) + func WriteFile(logger log.Logger, dir string, tr Reader) (int64, error) + type Interval struct + Maxt int64 + Mint int64 + func (tr Interval) InBounds(t int64) bool + func (tr Interval) IsSubrange(dranges Intervals) bool + type Intervals []Interval + func (in Intervals) Add(n Interval) Intervals + type MemTombstones struct + func NewMemTombstones() *MemTombstones + func NewTestMemTombstones(intervals []Intervals) *MemTombstones + func (*MemTombstones) Close() error + func (t *MemTombstones) AddInterval(ref storage.SeriesRef, itvs ...Interval) + func (t *MemTombstones) DeleteTombstones(refs map[storage.SeriesRef]struct{}) + func (t *MemTombstones) Get(ref storage.SeriesRef) (Intervals, error) + func (t *MemTombstones) Iter(f func(storage.SeriesRef, Intervals) error) error + func (t *MemTombstones) Total() uint64 + func (t *MemTombstones) TruncateBefore(beforeT int64) + type Reader interface + Close func() error + Get func(ref storage.SeriesRef) (Intervals, error) + Iter func(func(storage.SeriesRef, Intervals) error) error + Total func() uint64 + func Decode(b []byte) (Reader, error) + func ReadTombstones(dir string) (Reader, int64, error) + type Stone struct + Intervals Intervals + Ref storage.SeriesRef