Documentation ¶
Overview ¶
Package boltdb implements storage based on the BoltDB database, backed by the filesystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailedToSetupDatabase = errors.New("failed to setup backing database") ErrFailedToTX = errors.New("failed to complete database transaction") ErrDataCorrupt = errors.New("data returned from the database corrupted") )
Err* are sentinel errors
Functions ¶
This section is empty.
Types ¶
type BoltDB ¶
type BoltDB struct {
// contains filtered or unexported fields
}
BoltDB is an implementation of the link shortener that stores links in the boltdb storage engine by CoreOS (later, etcd-io):
* https://github.com/etcd-io/bbolt
Not something I've used a lot, so YMMV.
type Option ¶
Option modifies the bolt options, allowing the user to set some property of the database.
func WithFileLockWait ¶
WithFileLockWait modifies the timeout that Unix based operating systems will wait for the file lock to be freed.
Click to show internal directories.
Click to hide internal directories.