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 + func ChunkFromSamples(s []Sample) chunks.Meta + func ChunkFromSamplesGeneric(s Samples) chunks.Meta + func PopulatedChunk(numSamples int, minTime int64) chunks.Meta + func TestDirLockerUsage(t *testing.T, ...) + type BufferedSeriesIterator struct + func NewBuffer(it chunkenc.Iterator, delta int64) *BufferedSeriesIterator + func (b *BufferedSeriesIterator) At() (int64, float64) + func (b *BufferedSeriesIterator) Buffer() chunkenc.Iterator + func (b *BufferedSeriesIterator) Err() error + func (b *BufferedSeriesIterator) Next() bool + func (b *BufferedSeriesIterator) PeekBack() (t int64, v float64, ok bool) + func (b *BufferedSeriesIterator) Seek(t int64) bool + type DirLocker struct + func NewDirLocker(dir, subsystem string, l log.Logger, r prometheus.Registerer) (*DirLocker, error) + func (l *DirLocker) Lock() error + func (l *DirLocker) Release() error + type Sample interface + T func() int64 + V func() float64 + func GenerateSamples(start, numSamples int) []Sample + type SampleSlice []Sample + func (s SampleSlice) Get(i int) Sample + func (s SampleSlice) Len() int + type Samples interface + Get func(i int) Sample + Len func() int