Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Codec is the codec used to marshal/unmarshal interfaces into the byte slices required by the BoltDB client. // The default codec is Gob Codec codec.Codec )
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a struct which implements the "kv.Store" interface powered by BoltDB under the hood
func New ¶
New creates a new DB struct to interace with the underlying BoltDB database. Be sure to close it when you're done or it could hang If the bucket does not exist, it will be created.
Click to show internal directories.
Click to hide internal directories.