Documentation ¶
Index ¶
- func Get(db *bolt.DB, name string, record Record) error
- func GetBucketName(r Record) []byte
- func List[R Record](db *bolt.DB, record R) ([]R, error)
- func ListNames(db *bolt.DB, bucketName []byte) ([]string, error)
- func Put(b *bolt.Bucket, record Record) error
- func Remove(db *bolt.DB, bucketName []byte, names ...string) error
- func SetContext(t testing.TB, bucketName []byte) *bolt.DB
- func XorName(name []byte) []byte
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶ added in v0.6.0
Get retrieves a record from the database, decrypts it and loads it into record.
func GetBucketName ¶ added in v0.7.0
GetBucketName returns the bucket name depending on the type of the record passed.
func SetContext ¶
SetContext creates a bucket and its context to test the database operations.
Types ¶
Click to show internal directories.
Click to hide internal directories.