Documentation ¶
Overview ¶
Package badger_wrapper is wrapper at https://godoc.org/github.com/dgraph-io/badger to easy use.
If "namespace" or the "key" does not exist in the provided base, an error is returned, otherwise the retrieved value/s. If the key/value pair cannot be saved, an error is returned.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { // Get attempts to get a value for a given key Get(namespace, key string) (value []byte, err error) // Set attempts to store a value for a given key Set(namespace, key string, value []byte) error // Has returns a boolean reflecting if the // database has a given key for a namespace or not. Has(namespace, key string) (bool, error) // Close closes the connection to the underlying Close() error }
Click to show internal directories.
Click to hide internal directories.