Documentation ¶
Index ¶
- func GetRaft(ctx context.Context) *badger.DB
- func Open(ctx context.Context, path string, logLevel ...string) (context.Context, *badger.DB)
- func OpenRaft(ctx context.Context, path string) (context.Context, *badger.DB)
- func SetKeyChangeObserver(ctx context.Context, obs func(context.Context, *badger.KVList) error)
- type Iter
- type IterOpts
- type Observer
- type Provider
- type Txn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Observer ¶ added in v0.0.30
type Provider ¶ added in v0.0.30
type Txn ¶ added in v0.0.30
type Txn interface { Set(key, value []byte) error SetTTL(key, value []byte, ttl time.Duration) error // Get retrieves a key and calls value with the data. When the key is not found // and nofFound is present then notFound is called. Get(key []byte, value func(val []byte) error, notFound ...func() error) error Has(key []byte) bool Delete(key []byte) error Close() error Iter(IterOpts) Iter }
Click to show internal directories.
Click to hide internal directories.