Documentation
¶
Index ¶
- func AddPrefixToKey(prefix []byte, key []byte) []byte
- func ChangeValue(db *badger.DB, prefix []byte, key []byte, ...) error
- func FindKeyByValue(db *badger.DB, prefix []byte, targetVal []byte) ([]byte, error)
- func GetValue(db *badger.DB, prefix []byte, key []byte) ([]byte, error)
- func Int64FromBytes(b []byte) int64
- func Int64ToBytes(v int64) []byte
- func IterOverKeys(db *badger.DB, prefix []byte, ...) (stoppedByCallback bool, err error)
- func IterOverKeysAndValues(db *badger.DB, prefix []byte, ...) (stoppedByCallback bool, err error)
- func IterOverValues(db *badger.DB, prefix []byte, callback func(val []byte) (stop bool, err error)) (stoppedByCallback bool, err error)
- func RemovePrefixFromKey(prefix []byte, key []byte) []byte
- func SetValue(db *badger.DB, prefix []byte, key []byte, value []byte) error
- func Uint64FromBytes(b []byte) uint64
- func Uint64ToBytes(v uint64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPrefixToKey ¶
func ChangeValue ¶
func FindKeyByValue ¶
func Int64FromBytes ¶
func Int64ToBytes ¶
func IterOverKeys ¶
func IterOverKeysAndValues ¶
func IterOverValues ¶
func RemovePrefixFromKey ¶
func Uint64FromBytes ¶
func Uint64ToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.