Documentation ¶
Index ¶
- type DB
- func (db *DB) Close() error
- func (db *DB) Compaction(now time.Time) error
- func (db *DB) DumpKeys(w io.Writer) error
- func (db *DB) Query(ctx context.Context, q meter.Query, events ...string) (meter.Results, error)
- func (db DB) Scanner(event string) meter.Scanner
- func (db *DB) Storer(event string) meter.Storer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a collection of Events stored in BadgerDB
func (*DB) Compaction ¶
Compaction merges event snapshot compacting data to hourly batches
Click to show internal directories.
Click to hide internal directories.