Documentation ¶
Index ¶
- Variables
- func CountKV(db *bbolt.DB, bucket []byte) (int, error)
- func CountKVPrefix(db *bbolt.DB, bucket, prefix []byte) (int, error)
- func EachWithBucket(db *bbolt.DB, bucket []byte, fun func(*bbolt.Bucket) error) error
- func EachWithKV(db *bbolt.DB, bucket []byte, fun func([]byte, []byte) error) error
- func Get(db *bbolt.DB, bucket, key []byte) []byte
- func GetWithBucket(db *bbolt.DB, bucket []byte, fun func(*bbolt.Bucket) error) error
- func GetWithDB(db *bbolt.DB, fun func(*bbolt.Tx) error) error
- func GetWithKVPrefix(db *bbolt.DB, bucket, prefix []byte, fun func([]byte, []byte) error) error
- func GetWithValue(db *bbolt.DB, bucket, key []byte, fun func([]byte) error) error
- func Open(path string, buckets ...[]byte) (*bbolt.DB, error)
- func Put(db *bbolt.DB, bucket, key, value []byte) error
- func PutWithBucket(db *bbolt.DB, bucket []byte, fun func(*bbolt.Bucket) error) error
- func PutWithDB(db *bbolt.DB, fun func(*bbolt.Tx) error) error
- func PutWithKVPrefix(db *bbolt.DB, bucket, prefix []byte, fun func([]byte, []byte) ([]byte, error)) error
- func PutWithValue(db *bbolt.DB, bucket, key []byte, fun func([]byte) ([]byte, error)) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBucketNotFound = errors.New("bucket not found") ErrKeyNotFound = errors.New("key not found") )
Functions ¶
func EachWithBucket ¶ added in v1.2.0
func EachWithKV ¶ added in v1.2.0
func GetWithBucket ¶ added in v1.1.0
func GetWithKVPrefix ¶ added in v1.2.0
func GetWithValue ¶ added in v1.1.0
func PutWithBucket ¶ added in v1.1.0
func PutWithKVPrefix ¶ added in v1.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.