Documentation ¶
Overview ¶
Package pebble provides a storage binding implementation using the Pebble storage engine.
Index ¶
- type PebbleBinding
- func (b *PebbleBinding) Close()
- func (b *PebbleBinding) Delete(key string) error
- func (b *PebbleBinding) DeleteAll() error
- func (b *PebbleBinding) DeleteB(key []byte) error
- func (b *PebbleBinding) DeletePrefix(prefix string) error
- func (b *PebbleBinding) DeletePrefixB(prefix []byte) error
- func (b *PebbleBinding) DeleteRange(start, end string) error
- func (b *PebbleBinding) DeleteRangeB(start, end []byte) error
- func (b *PebbleBinding) Get(key string) ([]byte, error)
- func (b *PebbleBinding) GetB(key []byte) ([]byte, error)
- func (b *PebbleBinding) KeyUpperBound(key []byte) []byte
- func (b *PebbleBinding) Open(cfg *config.Config) error
- func (b *PebbleBinding) ScanPrefix(prefix string, callback api.ScanKeyValue) error
- func (b *PebbleBinding) ScanPrefixB(prefix []byte, callback api.ScanKeyValueB) error
- func (b *PebbleBinding) ScanRange(start, end string, callback api.ScanKeyValue) error
- func (b *PebbleBinding) ScanRangeB(start, end []byte, callback api.ScanKeyValueB) error
- func (b *PebbleBinding) ScanRangeReverseB(start, end []byte, callback api.ScanKeyValueB) error
- func (b *PebbleBinding) Set(key string, value []byte) error
- func (b *PebbleBinding) SetB(key []byte, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PebbleBinding ¶
type PebbleBinding struct {
// contains filtered or unexported fields
}
PebbleBinding realizes a storage binding for the Pebble key-value store by implementing the storage API interface api.Api.
func (*PebbleBinding) Close ¶
func (b *PebbleBinding) Close()
Close implements the api.Api interface.
func (*PebbleBinding) Delete ¶
func (b *PebbleBinding) Delete(key string) error
Delete implements the api.Api interface.
func (*PebbleBinding) DeleteAll ¶
func (b *PebbleBinding) DeleteAll() error
DeleteAll implements the api.Api interface.
func (*PebbleBinding) DeleteB ¶ added in v0.42.0
func (b *PebbleBinding) DeleteB(key []byte) error
DeleteB implements the api.Api interface.
func (*PebbleBinding) DeletePrefix ¶ added in v0.42.0
func (b *PebbleBinding) DeletePrefix(prefix string) error
DeletePrefix implements the api.Api interface.
func (*PebbleBinding) DeletePrefixB ¶ added in v0.42.0
func (b *PebbleBinding) DeletePrefixB(prefix []byte) error
DeletePrefixB implements the api.Api interface.
func (*PebbleBinding) DeleteRange ¶
func (b *PebbleBinding) DeleteRange(start, end string) error
DeleteRange implements the api.Api interface.
func (*PebbleBinding) DeleteRangeB ¶ added in v0.42.0
func (b *PebbleBinding) DeleteRangeB(start, end []byte) error
DeleteRangeB implements the api.Api interface.
func (*PebbleBinding) Get ¶
func (b *PebbleBinding) Get(key string) ([]byte, error)
Get implements the api.Api interface.
func (*PebbleBinding) GetB ¶ added in v0.42.0
func (b *PebbleBinding) GetB(key []byte) ([]byte, error)
GetB implements the api.Api interface.
func (*PebbleBinding) KeyUpperBound ¶ added in v0.42.0
func (b *PebbleBinding) KeyUpperBound(key []byte) []byte
KeyUpperBound implements the api.Api interface.
func (*PebbleBinding) Open ¶
func (b *PebbleBinding) Open(cfg *config.Config) error
Open implements the api.Api interface.
func (*PebbleBinding) ScanPrefix ¶
func (b *PebbleBinding) ScanPrefix(prefix string, callback api.ScanKeyValue) error
ScanPrefix implements the api.Api interface.
func (*PebbleBinding) ScanPrefixB ¶ added in v0.42.0
func (b *PebbleBinding) ScanPrefixB(prefix []byte, callback api.ScanKeyValueB) error
ScanPrefixB implements the api.Api interface.
func (*PebbleBinding) ScanRange ¶
func (b *PebbleBinding) ScanRange(start, end string, callback api.ScanKeyValue) error
ScanRange implements the api.Api interface.
func (*PebbleBinding) ScanRangeB ¶ added in v0.42.0
func (b *PebbleBinding) ScanRangeB(start, end []byte, callback api.ScanKeyValueB) error
ScanRangeB implements the api.Api interface.
func (*PebbleBinding) ScanRangeReverseB ¶ added in v0.42.0
func (b *PebbleBinding) ScanRangeReverseB(start, end []byte, callback api.ScanKeyValueB) error
ScanRangeReverseB implements the api.Api interface.