Documentation ¶
Index ¶
- Variables
- func DB() *badger.DB
- func Index() *buntdb.DB
- func Init(config Config) error
- func MustInit(config Config)
- func Update(fn func(txn *badger.Txn) error) (err error)
- func UpdateIndex(fn func(tx *buntdb.Tx) error) (err error)
- func View(fn func(txn *badger.Txn) error) (err error)
- func ViewIndex(fn func(tx *buntdb.Tx) error) error
- type Allocator
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultConfig = Config{ DirPath: "./_hdd", ConflictRetries: 100, ConflictMaxInterval: time.Millisecond, } )
Functions ¶
Types ¶
type Allocator ¶ added in v0.2.6
type Allocator struct {
// contains filtered or unexported fields
}
func NewAllocator ¶ added in v0.2.6
func NewAllocator() *Allocator
func (*Allocator) ReleaseAll ¶ added in v0.2.6
func (bk *Allocator) ReleaseAll()
Click to show internal directories.
Click to hide internal directories.