Documentation ¶
Index ¶
- Constants
- type Driver
- func (d *Driver) Close() error
- func (d *Driver) Delete(atHeight int64, key []byte) error
- func (d *Driver) DeleteSync(atHeight int64, key []byte) error
- func (d *Driver) Get(maxHeight int64, key []byte) ([]byte, error)
- func (d *Driver) Has(maxHeight int64, key []byte) (bool, error)
- func (d *Driver) Iterator(maxHeight int64, start, end []byte) (hld.HeightLimitEnabledIterator, error)
- func (d *Driver) NewBatch(atHeight int64) hld.HeightLimitEnabledBatch
- func (d *Driver) Print() error
- func (d *Driver) ReverseIterator(maxHeight int64, start, end []byte) (hld.HeightLimitEnabledIterator, error)
- func (d *Driver) Set(atHeight int64, key, value []byte) error
- func (d *Driver) SetSync(atHeight int64, key, value []byte) error
- func (d *Driver) Stats() map[string]string
- type DriverConfig
- type Iterator
- type LevelBatch
Constants ¶
View Source
const ( DriverModeKeySuffixAsc = iota DriverModeKeySuffixDesc )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func NewLevelDBDriver ¶
func NewLevelDBDriver(config *DriverConfig) (*Driver, error)
func (*Driver) ReverseIterator ¶
type DriverConfig ¶
type LevelBatch ¶
type LevelBatch struct {
// contains filtered or unexported fields
}
func NewLevelDBBatch ¶
func NewLevelDBBatch(atHeight int64, driver *Driver) *LevelBatch
func (*LevelBatch) Close ¶
func (b *LevelBatch) Close() error
func (*LevelBatch) Delete ¶
func (b *LevelBatch) Delete(key []byte) error
func (*LevelBatch) Metric ¶
func (b *LevelBatch) Metric()
func (*LevelBatch) RollbackBatch ¶
func (b *LevelBatch) RollbackBatch() tmdb.Batch
func (*LevelBatch) Set ¶
func (b *LevelBatch) Set(key, value []byte) error
func (*LevelBatch) Write ¶
func (b *LevelBatch) Write() error
func (*LevelBatch) WriteSync ¶
func (b *LevelBatch) WriteSync() error
Click to show internal directories.
Click to hide internal directories.