# Packages
Package compare provides comparison functions for testing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
BuildCustomIterator builds a custom iterator with bounds.
BuildTestSeriesIterator creates a sample SeriesIterator This series iterator has two identical replicas.
GeneratePromReadBody generates a sample snappy encoded prometheus remote read request body.
GeneratePromReadRequest generates a sample prometheus remote read request.
GenerateValuesAndBounds generates a list of sample values and bounds while allowing overrides.
MakeMockIteratorPool builds a mock iterator pool.
MustMakeMeta returns block metadata or panics (unsafe for use).
MustMakeSeriesMeta returns series metadata or panics (unsafe for use).
NewBlockFromValues creates a new block using the provided values.
NewBlockFromValuesWithMetaAndSeriesMeta creates a new block using the provided values.
NewBlockFromValuesWithSeriesMeta creates a new block using the provided values.
NewSeriesMeta creates new metadata tags in the format [tagPrefix:i] for the number of series.
NewSeriesMetaWithoutName creates new metadata tags in the format [tagPrefix:i] for the number of series, without including the __name__.
NewSlowHandler creates a new slow handler.
NewSlowStorage creates a new slow storage.
NewUnconsolidatedBlockFromDatapointsWithMeta creates a new unconsolidated block using the provided values and metadata.
NoopMod can be used to generate multi blocks when no value modification is needed.
StringTagsSliceToTagSlice converts a slice of string tags to a slice of tags.
StringTagsToTags converts string tags to tags.
TagSliceSliceToTagSlice converts a slice of tag slices to a slice of tags.
TagSliceToTags converts a slice of tags to tags.
# Variables
BlockSize is the expected block size for the generated series.
End is the expected end time for the generated series.
Middle is the expected end for the first block, and start of the second block.
SeriesNamespace is the expected namespace for the generated series.
SeriesStart is the expected start time for the generated series.
Start is the expected start time for the first block in the generated series.
TestTags is the expected tags for the generated series.
# Structs
Datapoint is a datapoint with a value and an offset for building a custom iterator.
MockIteratorPool is an iterator pool used for testing.
SlowHandler slows down a request by delay.
StringTag is a tag containing string key value pairs.
# Type aliases
StringTags is a slice of string tags.
ValueMod can be used to modify provided values for testing.