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) Exists ¶
func (b BoltClient) Exists(r boltExister) (bool, error)
Exists is the entrypoint to check if a bucket or KV exists.
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 `json:"name,omitempty"` Nested map[string]*Bucket `json:"children,omitempty"` Parent *Bucket }
Bucket holds the name of a bucket in a BoltDB database.
func (*Bucket) SetNestedBucket ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.