Documentation ¶
Overview ¶
Package evbadger provides an evdb backend using dgraph.io/badger key-value store
Index ¶
- func ParseURL(optionsURL string) (options badger.Options, err error)
- 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) Register(event string) (evdb.Storer, error)
- func (db *DB) ScanQuery(ctx context.Context, q *evdb.ScanQuery) (evdb.Results, error)
- func (db *DB) Storer(event string) evdb.Storer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
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.