Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("closed")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // Please refer to the Badger docs to see what this is for GcDiscardRatio float64 // Interval between GC cycles // // If zero, the datastore will perform no automatic garbage collection. GcInterval time.Duration // Sleep time between rounds of a single GC cycle. // // If zero, the datastore will only perform one round of GC per // GcInterval. GcSleep time.Duration badger.Options }
Options are the badger datastore options, reexported here for convenience.
var DefaultOptions Options
DefaultOptions are the default options for the badger datastore.
type Repo ¶
func NewDatastore ¶
func NewDatastore() *Repo
func (*Repo) NewImplicitTransaction ¶
func (*Repo) NewTransaction ¶
Click to show internal directories.
Click to hide internal directories.