Documentation
¶
Index ¶
- type BucketNotFoundError
- type DB
- func (b *DB) Close() (err error)
- func (b *DB) Delete(identifier string, key key.Key) error
- func (b *DB) GetBytes(identifier string, key key.Key) (value []byte, err error)
- func (b *DB) GetBytesSafe(identifier string, key key.Key) ([]byte, error)
- func (b *DB) GetDBFileName() string
- func (b *DB) Len(identifier string) (int, error)
- func (b *DB) SetBytes(identifier string, key key.Key, value []byte) error
- type ErrKeyNotFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketNotFoundError ¶
type BucketNotFoundError struct {
Identifier string
}
BucketNotFoundError is returned when a bucket/table is not found
func (BucketNotFoundError) Error ¶
func (e BucketNotFoundError) Error() string
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a wrapper for the DB database library
func NewDB ¶
NewDB creates a wrapper object for a NewDB database to creates new or load an existing DB. dbFileName: the path where the BoltDB file is stored on disk
func (*DB) GetBytesSafe ¶
GetBytesSafe attempts to get a value from the database, and returns nil if not found
func (*DB) GetDBFileName ¶
type ErrKeyNotFound ¶
DatabaseExistsError is returned when a database already exists when trying to create it
func (ErrKeyNotFound) Error ¶
func (e ErrKeyNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.