Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltClient ¶
BoltClient holds a Bolt DB connection
func (BoltClient) Delete ¶
func (b BoltClient) Delete(r boltDeleter) error
Delete is the entrypoint to delete a database resource.
func (*BoltClient) NewDB ¶
func (b *BoltClient) NewDB(name string) error
NewDB creates a new database or opens an existing database and attaches it to the client.
func (BoltClient) Read ¶
func (b BoltClient) Read(r boltReader) error
Read is the entrypoint to read a KV or slice of KVs.
func (BoltClient) ReadAll ¶
func (b BoltClient) ReadAll(r boltReader) (KVs, error)
ReadAll is the entrypoint to read all KVs from a bucket.
func (BoltClient) Write ¶
func (b BoltClient) Write(w boltWriter) error
Write is the entrypoint to write either a KV, a slice of KVs, or a Bucket.
type Bucket ¶
type Bucket struct {
Name string
}
Bucket holds the name of a bucket in a BoltDB database.
Click to show internal directories.
Click to hide internal directories.