Documentation ¶ Index ¶ func NewDB(ctx context.Context) (*buntdb.DB, error) func NewDBWithOptions(ctx context.Context, o *Options) (db *buntdb.DB, err error) type Options func NewOptions() (*Options, error) func NewOptionsWithPath(path string) (opts *Options, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewDB ¶ func NewDB(ctx context.Context) (*buntdb.DB, error) func NewDBWithOptions ¶ func NewDBWithOptions(ctx context.Context, o *Options) (db *buntdb.DB, err error) Types ¶ type Options ¶ type Options struct { Path string SyncPolicy int AutoShrink struct { Percentage int MinSize int Disabled bool } `config:"autoShrink"` } func NewOptions ¶ func NewOptions() (*Options, error) func NewOptionsWithPath ¶ func NewOptionsWithPath(path string) (opts *Options, err error) Source Files ¶ View all Source files config.go database.go options.go Click to show internal directories. Click to hide internal directories.