Documentation ¶
Index ¶
- type DB
- type DBMock
- func (_m *DBMock) Close() error
- func (_m *DBMock) Delete(_a0 string) error
- func (_m *DBMock) Empty() error
- func (_m *DBMock) IsStored(_a0 string) bool
- func (_m *DBMock) Read(_a0 string) ([]byte, error)
- func (_m *DBMock) ReadFirstValueByPrefix(_a0 string) ([]byte, error)
- func (_m *DBMock) ReadKeyValues() (map[string][]byte, error)
- func (_m *DBMock) ReadKeys() ([]string, error)
- func (_m *DBMock) ReadKeysWithPrefix(_a0 string) ([]string, error)
- func (_m *DBMock) ReadPrefix(_a0 string) ([][]byte, error)
- func (_m *DBMock) ReadPrefixWithKey(_a0 string) (map[string][]byte, error)
- func (_m *DBMock) Store(_a0 string, _a1 []byte) error
- func (_m *DBMock) StoreBatch(_a0 interface{}) error
- func (_m *DBMock) StoreQueueBatch(_a0 interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { Store(string, []byte) error StoreBatch(interface{}) error StoreQueueBatch(interface{}) error Read(string) ([]byte, error) ReadKeys() ([]string, error) ReadKeyValues() (map[string][]byte, error) ReadKeysWithPrefix(string) ([]string, error) ReadPrefix(string) ([][]byte, error) ReadFirstValueByPrefix(string) ([]byte, error) ReadPrefixWithKey(string) (map[string][]byte, error) IsStored(string) bool Delete(string) error Empty() error Close() error }
DB interface implements methods for a generic key value storage db
type DBMock ¶
DBMock is an autogenerated mock type for the DB type
func (*DBMock) ReadFirstValueByPrefix ¶
ReadFirstValueByPrefix provides a mock function with given fields: _a0
func (*DBMock) ReadKeyValues ¶
ReadKeyValues provides a mock function with given fields:
func (*DBMock) ReadKeysWithPrefix ¶
ReadKeysWithPrefix provides a mock function with given fields: _a0
func (*DBMock) ReadPrefix ¶
ReadPrefix provides a mock function with given fields: _a0
func (*DBMock) ReadPrefixWithKey ¶
ReadPrefixWithKey provides a mock function with given fields: _a0
func (*DBMock) StoreBatch ¶
StoreBatch provides a mock function with given fields: _a0
func (*DBMock) StoreQueueBatch ¶
StoreQueueBatch provides a mock function with given fields: _a0
Click to show internal directories.
Click to hide internal directories.