Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProvider ¶
MockProvider is an autogenerated mock type for the Provider type
func (*MockProvider) Close ¶
func (_m *MockProvider) Close() error
Close provides a mock function with given fields:
func (*MockProvider) CloseStore ¶
func (_m *MockProvider) CloseStore(name string) error
CloseStore provides a mock function with given fields: name
type MockStore ¶
MockStore is an autogenerated mock type for the Store type
type Store ¶
type Store interface {
// Put stores the key and the record
Put(k string, v []byte) error
// Get fetches the record based on key
Get(k string) ([]byte, error)
// Iterator returns an iterator for the latest snapshot of the
// underlying store
//
// Args:
//
// startKey: Start of the key range, include in the range.
// endKey: End of the key range, not include in the range.
//
// Returns:
//
// StoreIterator: iterator for result range
Iterator(startKey, endKey string) storage.StoreIterator
// Delete will delete a record with k key
Delete(k string) error
}
Click to show internal directories.
Click to hide internal directories.