Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKeyNotFound = badger.ErrKeyNotFound
)
Functions ¶
func CleanupBadgerInstance ¶
func CleanupBadgerInstance()
func CloseDatabase ¶
func CloseDatabase() error
func GetBadgerInstance ¶
func GetBadgerInstance() *badger.DB
Types ¶
type Database ¶
type Database interface { // Read Contains(key Key) (bool, error) Get(key Key) (Entry, error) GetKeyOnly(key Key) (KeyOnlyEntry, error) // Write Set(entry Entry) error Delete(key Key) error DeletePrefix(keyPrefix KeyPrefix) error // Iteration ForEach(func(entry Entry) (stop bool)) error ForEachPrefix(keyPrefix KeyPrefix, do func(entry Entry) (stop bool)) error ForEachPrefixKeyOnly(keyPrefix KeyPrefix, do func(entry KeyOnlyEntry) (stop bool)) error // Transactions Apply(set []Entry, delete []Key) error }
type KeyOnlyEntry ¶
Click to show internal directories.
Click to hide internal directories.