Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type DataPoint ¶
type DataPoint struct { // The actual value, This field must be set Value float64 // Unix timestamp Timestamp int64 }
DataPoint represents a data point , the smallest unit of time seies data
type DeCompressor ¶
type Option ¶
type Option func(*storage)
Option is an optional setting for NewStorage
func WithDataPath ¶
func WithLogger ¶
func WithPartitionDuration ¶
func WithTimestampPrecision ¶
type Reader ¶
type Reader interface {
Select(metrics string, labels []Label, start, end int64) (points []*DataPoint, err error)
}
Reader provides reading access of time serial data
type Storage ¶
Storage provides goroutines safe capabilities of inserting into and retrieval from the time serias
func NewStorage ¶
type TimestampPrecision ¶
type TimestampPrecision string
TimestampPrecision represents precision of timestamp
const ( Nanoseconds TimestampPrecision = "ns" Microseconds TimestampPrecision = "us" Milliseconds TimestampPrecision = "ms" Seconds TimestampPrecision = "s" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.