Versions in this module Expand all Collapse all v0 v0.0.2 Nov 16, 2019 v0.0.1 Nov 16, 2019 Changes in this version + type Bulk interface + Delete func(key []byte) + DiscardLast func() + Flush func() + Set func(key, value []byte) + type DB interface + Close func() + Delete func(key []byte) + Exist func(key []byte) bool + Get func(key []byte) []byte + Iterator func(start, end []byte) Iterator + NewBulk func() Bulk + NewTx func() Transaction + Set func(key, value []byte) + Type func() string + func NewBadgerDB(dir string) (DB, error) + func NewDB(dbimpltype ImplType, dir string) DB + func NewLevelDB(dir string) (DB, error) + func NewMemoryDB(dir string) (DB, error) + type ImplType string + const BadgerImpl + const LevelImpl + const MemoryImpl + type Iterator interface + Key func() []byte + Next func() + Valid func() bool + Value func() []byte + type Transaction interface + Commit func() + Delete func(key []byte) + Discard func() + Set func(key, value []byte)