Documentation ¶
Index ¶
- func AddKeyValueToBucket(bucket []byte, keyValue, index *Data) (err error)
- func Backup() (did bool, err error)
- func BackupTicker(interval time.Duration) (done chan<- struct{})
- func Close() (err error)
- func GetKeyValueFromBucket(bucket []byte, index, keyValue *Data) (found bool, err error)
- func Init(cfg Cfg) (err error)
- func Wipe() (err error)
- type Cfg
- type Data
- type Filter
- type Mgd
- type Use
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddKeyValueToBucket ¶
AddKeyValueToBucket add value to bucket pointed by the index. keyValue and index use Data types operators to encrypt and hash data on the fly.
func BackupTicker ¶
BackupTicker creates a backup ticker which takes backup copy of the database file specified by the interval. Ticker can be stopped with returned done channel.
func Close ¶
func Close() (err error)
Close closes the database. It can be used after that if wanted. Transactions opens the database when needed.
func GetKeyValueFromBucket ¶
GetKeyValueFromBucket writes keyValue data by the index from a bucket. It returns found if key value exists. Returns are only if it cannot perform the transaction successfully.
Types ¶
Click to show internal directories.
Click to hide internal directories.