Documentation ¶
Index ¶
- func AddKey(db *bolt.DB, bucket string, key string, val string) error
- func AddRecord(db *bolt.DB, bucket string, key string, data interface{}) error
- func GetKey(db *bolt.DB, bucket, key string) ([]byte, error)
- func GetRecord(db *bolt.DB, bucket string) ([]byte, error)
- func InitDB(boltDatabasePath, bucketName string) (*bolt.DB, error)
- func RemoveKey(db *bolt.DB, bucket, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddKey ¶
AddKey - To add key into bucket
func AddRecord ¶
AddRecord - To Add,append or update data into a bucket
func GetKey ¶
GetKey - To get data in bucket of given key
func GetRecord ¶
GetRecord - To get all data in bucket
func InitDB ¶
InitDB - To create database and bucket
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.