Documentation ¶
Index ¶
- func CloseStores()
- type KV
- func (kv *KV) EndSerialTransaction() error
- func (kv *KV) EndTransaction() error
- func (kv *KV) Get(key string) (string, error)
- func (kv *KV) ListKeys(prefix string, limit int) ([]string, error)
- func (kv *KV) ListPairs(prefix string, limit int) ([]Pair, error)
- func (kv *KV) StartSerialTransaction() error
- func (kv *KV) StartTransaction() error
- func (kv *KV) TransactionDelete(key string) error
- func (kv *KV) TransactionGet(key string) (string, error)
- func (kv *KV) TransactionSet(key, value string) error
- type LogWrapper
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
KV store for both in-memory and on-disk usage
func GetMemoryStore ¶
GetMemoryStore does what it says on the tin
func (*KV) EndSerialTransaction ¶
EndSerialTransaction or error
func (*KV) StartSerialTransaction ¶
StartSerialTransaction or error
func (*KV) TransactionDelete ¶
TransactionDelete the given key or error as part of a transaction
func (*KV) TransactionGet ¶
TransactionGet the value for the given key or error as part of a transaction
func (*KV) TransactionSet ¶
TransactionSet the KV pair or error as part of a transaction
type LogWrapper ¶
type LogWrapper struct{}
LogWrapper for translating badger logs to zerolog logs
func (*LogWrapper) Debugf ¶
func (*LogWrapper) Debugf(s string, i ...interface{})
Debugf emits formatted badger debugging info
func (*LogWrapper) Errorf ¶
func (*LogWrapper) Errorf(s string, i ...interface{})
Errorf emits a formatted badger error
func (*LogWrapper) Infof ¶
func (*LogWrapper) Infof(s string, i ...interface{})
Infof emits formatted badger info
func (*LogWrapper) Warningf ¶
func (*LogWrapper) Warningf(s string, i ...interface{})
Warningf emits a formatted badger warning
Click to show internal directories.
Click to hide internal directories.