Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
Aggregator stores single log records into minute candles, returning candle for previous minute when first log entry for new minute appears
type Bolt ¶
type Bolt struct {
// contains filtered or unexported fields
}
Bolt implements store.Engine with boltdb
func (*Bolt) Load ¶
func (s *Bolt) Load(ctx context.Context, periodStart, periodEnd time.Time) (result []Candle, err error)
Load Candles by period
func (*Bolt) LoadStream ¶
LoadStream get Candles by period and returns as async stream
type Engine ¶
type Engine interface { Save(candle Candle) (err error) Load(ctx context.Context, periodStart, periodEnd time.Time) (result []Candle, err error) }
Engine defines interface to save log entries and load candles
Click to show internal directories.
Click to hide internal directories.