Documentation ¶
Index ¶
- func NewBolt(fpath string) (*boltKV, error)
- type Iterator
- type KV
- type KvInstance
- func (k *KvInstance) Delete(key []byte) error
- func (k *KvInstance) Exist(key []byte) bool
- func (k *KvInstance) Get(key []byte) ([]byte, error)
- func (k *KvInstance) Iter(key []byte) (Iterator, error)
- func (k *KvInstance) NewKvTxn() (KvTxn, error)
- func (k *KvInstance) Set(key []byte, value []byte) error
- type KvTxn
- type Kvdb
- type Pebble
- func (p *Pebble) Delete(prefix string, key []byte) error
- func (p *Pebble) Exist(prefix string, key []byte) bool
- func (p *Pebble) Get(prefix string, key []byte) ([]byte, error)
- func (p *Pebble) Iter(prefix string, key []byte) (Iterator, error)
- func (p *Pebble) Kind() storage.StoreKind
- func (p *Pebble) New(prefix string) KV
- func (p *Pebble) NewKvTxn(prefix string) (KvTxn, error)
- func (p *Pebble) Set(prefix string, key []byte, value []byte) error
- func (p *Pebble) Type() storage.StoreType
- type PebbleIter
- type PebbleTxn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KV ¶
type KvInstance ¶
type KvInstance struct {
// contains filtered or unexported fields
}
func (*KvInstance) Delete ¶
func (k *KvInstance) Delete(key []byte) error
func (*KvInstance) Exist ¶
func (k *KvInstance) Exist(key []byte) bool
func (*KvInstance) NewKvTxn ¶
func (k *KvInstance) NewKvTxn() (KvTxn, error)
type Kvdb ¶
type Kvdb interface { storage.StorageType New(prefix string) KV Get(prefix string, key []byte) ([]byte, error) Set(prefix string, key []byte, value []byte) error Delete(prefix string, key []byte) error Exist(prefix string, key []byte) bool Iter(prefix string, key []byte) (Iterator, error) NewKvTxn(prefix string) (KvTxn, error) }
type PebbleIter ¶
type PebbleIter struct {
// contains filtered or unexported fields
}
func (*PebbleIter) Close ¶
func (p *PebbleIter) Close()
func (*PebbleIter) Entry ¶
func (p *PebbleIter) Entry() (key, value []byte, err error)
func (*PebbleIter) Next ¶
func (p *PebbleIter) Next() (err error)
func (*PebbleIter) Valid ¶
func (p *PebbleIter) Valid() bool
Click to show internal directories.
Click to hide internal directories.