Documentation
¶
Overview ¶
Package database is a generated GoMock package.
Index ¶
- type LinkedDB
- type MockLinkedDB
- func (m *MockLinkedDB) Delete(arg0 []byte) error
- func (m *MockLinkedDB) EXPECT() *MockLinkedDBMockRecorder
- func (m *MockLinkedDB) Get(arg0 []byte) ([]byte, error)
- func (m *MockLinkedDB) Has(arg0 []byte) (bool, error)
- func (m *MockLinkedDB) Head() ([]byte, []byte, error)
- func (m *MockLinkedDB) HeadKey() ([]byte, error)
- func (m *MockLinkedDB) IsEmpty() (bool, error)
- func (m *MockLinkedDB) NewIterator() database.Iterator
- func (m *MockLinkedDB) NewIteratorWithStart(arg0 []byte) database.Iterator
- func (m *MockLinkedDB) Put(arg0, arg1 []byte) error
- type MockLinkedDBMockRecorder
- func (mr *MockLinkedDBMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockLinkedDBMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockLinkedDBMockRecorder) Has(arg0 interface{}) *gomock.Call
- func (mr *MockLinkedDBMockRecorder) Head() *gomock.Call
- func (mr *MockLinkedDBMockRecorder) HeadKey() *gomock.Call
- func (mr *MockLinkedDBMockRecorder) IsEmpty() *gomock.Call
- func (mr *MockLinkedDBMockRecorder) NewIterator() *gomock.Call
- func (mr *MockLinkedDBMockRecorder) NewIteratorWithStart(arg0 interface{}) *gomock.Call
- func (mr *MockLinkedDBMockRecorder) Put(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedDB ¶
type LinkedDB interface { database.KeyValueReaderWriterDeleter IsEmpty() (bool, error) HeadKey() ([]byte, error) Head() (key []byte, value []byte, err error) NewIterator() database.Iterator NewIteratorWithStart(start []byte) database.Iterator }
LinkedDB provides a key value interface while allowing iteration.
func NewDefault ¶
type MockLinkedDB ¶
type MockLinkedDB struct {
// contains filtered or unexported fields
}
MockLinkedDB is a mock of LinkedDB interface.
func NewMockLinkedDB ¶
func NewMockLinkedDB(ctrl *gomock.Controller) *MockLinkedDB
NewMockLinkedDB creates a new mock instance.
func (*MockLinkedDB) Delete ¶
func (m *MockLinkedDB) Delete(arg0 []byte) error
Delete mocks base method.
func (*MockLinkedDB) EXPECT ¶
func (m *MockLinkedDB) EXPECT() *MockLinkedDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLinkedDB) Get ¶
func (m *MockLinkedDB) Get(arg0 []byte) ([]byte, error)
Get mocks base method.
func (*MockLinkedDB) Has ¶
func (m *MockLinkedDB) Has(arg0 []byte) (bool, error)
Has mocks base method.
func (*MockLinkedDB) Head ¶
func (m *MockLinkedDB) Head() ([]byte, []byte, error)
Head mocks base method.
func (*MockLinkedDB) HeadKey ¶
func (m *MockLinkedDB) HeadKey() ([]byte, error)
HeadKey mocks base method.
func (*MockLinkedDB) IsEmpty ¶
func (m *MockLinkedDB) IsEmpty() (bool, error)
IsEmpty mocks base method.
func (*MockLinkedDB) NewIterator ¶
func (m *MockLinkedDB) NewIterator() database.Iterator
NewIterator mocks base method.
func (*MockLinkedDB) NewIteratorWithStart ¶
func (m *MockLinkedDB) NewIteratorWithStart(arg0 []byte) database.Iterator
NewIteratorWithStart mocks base method.
func (*MockLinkedDB) Put ¶
func (m *MockLinkedDB) Put(arg0, arg1 []byte) error
Put mocks base method.
type MockLinkedDBMockRecorder ¶
type MockLinkedDBMockRecorder struct {
// contains filtered or unexported fields
}
MockLinkedDBMockRecorder is the mock recorder for MockLinkedDB.
func (*MockLinkedDBMockRecorder) Delete ¶
func (mr *MockLinkedDBMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockLinkedDBMockRecorder) Get ¶
func (mr *MockLinkedDBMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockLinkedDBMockRecorder) Has ¶
func (mr *MockLinkedDBMockRecorder) Has(arg0 interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockLinkedDBMockRecorder) Head ¶
func (mr *MockLinkedDBMockRecorder) Head() *gomock.Call
Head indicates an expected call of Head.
func (*MockLinkedDBMockRecorder) HeadKey ¶
func (mr *MockLinkedDBMockRecorder) HeadKey() *gomock.Call
HeadKey indicates an expected call of HeadKey.
func (*MockLinkedDBMockRecorder) IsEmpty ¶
func (mr *MockLinkedDBMockRecorder) IsEmpty() *gomock.Call
IsEmpty indicates an expected call of IsEmpty.
func (*MockLinkedDBMockRecorder) NewIterator ¶
func (mr *MockLinkedDBMockRecorder) NewIterator() *gomock.Call
NewIterator indicates an expected call of NewIterator.
func (*MockLinkedDBMockRecorder) NewIteratorWithStart ¶
func (mr *MockLinkedDBMockRecorder) NewIteratorWithStart(arg0 interface{}) *gomock.Call
NewIteratorWithStart indicates an expected call of NewIteratorWithStart.
func (*MockLinkedDBMockRecorder) Put ¶
func (mr *MockLinkedDBMockRecorder) Put(arg0, arg1 interface{}) *gomock.Call
Put indicates an expected call of Put.