Documentation
¶
Index ¶
- type StorerStub
- func (ss *StorerStub) ClearCache()
- func (ss *StorerStub) Close() error
- func (ss *StorerStub) DestroyUnit() error
- func (ss *StorerStub) Get(key []byte) ([]byte, error)
- func (ss *StorerStub) GetBulkFromEpoch(keys [][]byte, epoch uint32) (map[string][]byte, error)
- func (ss *StorerStub) GetFromEpoch(key []byte, epoch uint32) ([]byte, error)
- func (ss *StorerStub) GetOldestEpoch() (uint32, error)
- func (ss *StorerStub) Has(key []byte) error
- func (ss *StorerStub) IsInterfaceNil() bool
- func (ss *StorerStub) Put(key, data []byte) error
- func (ss *StorerStub) PutInEpoch(key, data []byte, epoch uint32) error
- func (ss *StorerStub) RangeKeys(handler func(key []byte, val []byte) bool)
- func (ss *StorerStub) Remove(key []byte) error
- func (ss *StorerStub) SearchFirst(key []byte) ([]byte, error)
- type UnitOpenerStub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorerStub ¶
type StorerStub struct {
PutCalled func(key, data []byte) error
PutInEpochCalled func(key, data []byte, epoch uint32) error
GetCalled func(key []byte) ([]byte, error)
HasCalled func(key []byte) error
SearchFirstCalled func(key []byte) ([]byte, error)
RemoveCalled func(key []byte) error
ClearCacheCalled func()
DestroyUnitCalled func() error
GetFromEpochCalled func(key []byte, epoch uint32) ([]byte, error)
GetBulkFromEpochCalled func(keys [][]byte, epoch uint32) (map[string][]byte, error)
GetOldestEpochCalled func() (uint32, error)
RangeKeysCalled func(handler func(key []byte, val []byte) bool)
CloseCalled func() error
}
StorerStub -
func (*StorerStub) GetBulkFromEpoch ¶
GetBulkFromEpoch -
func (*StorerStub) GetFromEpoch ¶
func (ss *StorerStub) GetFromEpoch(key []byte, epoch uint32) ([]byte, error)
GetFromEpoch -
func (*StorerStub) GetOldestEpoch ¶
func (ss *StorerStub) GetOldestEpoch() (uint32, error)
GetOldestEpoch -
func (*StorerStub) PutInEpoch ¶
func (ss *StorerStub) PutInEpoch(key, data []byte, epoch uint32) error
PutInEpoch -
func (*StorerStub) RangeKeys ¶
func (ss *StorerStub) RangeKeys(handler func(key []byte, val []byte) bool)
RangeKeys -
func (*StorerStub) SearchFirst ¶
func (ss *StorerStub) SearchFirst(key []byte) ([]byte, error)
SearchFirst -
type UnitOpenerStub ¶
type UnitOpenerStub struct {
OpenDBCalled func(dbConfig config.DBConfig, shardID uint32, epoch uint32) (storage.Storer, error)
GetMostRecentStorageUnitCalled func(config config.DBConfig) (storage.Storer, error)
}
UnitOpenerStub -
func (*UnitOpenerStub) GetMostRecentStorageUnit ¶
func (uohs *UnitOpenerStub) GetMostRecentStorageUnit(config config.DBConfig) (storage.Storer, error)
GetMostRecentStorageUnit -
func (*UnitOpenerStub) IsInterfaceNil ¶
func (uohs *UnitOpenerStub) IsInterfaceNil() bool
IsInterfaceNil -
Click to show internal directories.
Click to hide internal directories.