Documentation
¶
Overview ¶
Package mocklogstore is a generated GoMock package.
Index ¶
- func NewInmemStore() logstore.LogStore
- type MockLogStore
- func (m *MockLogStore) DeleteRange(min, max uint64) error
- func (m *MockLogStore) EXPECT() *MockLogStoreMockRecorder
- func (m *MockLogStore) FirstIndex() (uint64, error)
- func (m *MockLogStore) GetLog(index uint64, log *raft.Log) error
- func (m *MockLogStore) LastIndex() (uint64, error)
- func (m *MockLogStore) StoreLog(log *raft.Log) error
- func (m *MockLogStore) StoreLogs(logs []*raft.Log) error
- type MockLogStoreMockRecorder
- func (mr *MockLogStoreMockRecorder) DeleteRange(min, max interface{}) *gomock.Call
- func (mr *MockLogStoreMockRecorder) FirstIndex() *gomock.Call
- func (mr *MockLogStoreMockRecorder) GetLog(index, log interface{}) *gomock.Call
- func (mr *MockLogStoreMockRecorder) LastIndex() *gomock.Call
- func (mr *MockLogStoreMockRecorder) StoreLog(log interface{}) *gomock.Call
- func (mr *MockLogStoreMockRecorder) StoreLogs(logs interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInmemStore ¶
NewInmemStore returns in-memory log store
Types ¶
type MockLogStore ¶
type MockLogStore struct {
// contains filtered or unexported fields
}
MockLogStore is a mock of LogStore interface
func NewMockLogStore ¶
func NewMockLogStore(ctrl *gomock.Controller) *MockLogStore
NewMockLogStore creates a new mock instance
func (*MockLogStore) DeleteRange ¶
func (m *MockLogStore) DeleteRange(min, max uint64) error
DeleteRange mocks base method
func (*MockLogStore) EXPECT ¶
func (m *MockLogStore) EXPECT() *MockLogStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLogStore) FirstIndex ¶
func (m *MockLogStore) FirstIndex() (uint64, error)
FirstIndex mocks base method
func (*MockLogStore) GetLog ¶
func (m *MockLogStore) GetLog(index uint64, log *raft.Log) error
GetLog mocks base method
func (*MockLogStore) LastIndex ¶
func (m *MockLogStore) LastIndex() (uint64, error)
LastIndex mocks base method
type MockLogStoreMockRecorder ¶
type MockLogStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockLogStoreMockRecorder is the mock recorder for MockLogStore
func (*MockLogStoreMockRecorder) DeleteRange ¶
func (mr *MockLogStoreMockRecorder) DeleteRange(min, max interface{}) *gomock.Call
DeleteRange indicates an expected call of DeleteRange
func (*MockLogStoreMockRecorder) FirstIndex ¶
func (mr *MockLogStoreMockRecorder) FirstIndex() *gomock.Call
FirstIndex indicates an expected call of FirstIndex
func (*MockLogStoreMockRecorder) GetLog ¶
func (mr *MockLogStoreMockRecorder) GetLog(index, log interface{}) *gomock.Call
GetLog indicates an expected call of GetLog
func (*MockLogStoreMockRecorder) LastIndex ¶
func (mr *MockLogStoreMockRecorder) LastIndex() *gomock.Call
LastIndex indicates an expected call of LastIndex
func (*MockLogStoreMockRecorder) StoreLog ¶
func (mr *MockLogStoreMockRecorder) StoreLog(log interface{}) *gomock.Call
StoreLog indicates an expected call of StoreLog
func (*MockLogStoreMockRecorder) StoreLogs ¶
func (mr *MockLogStoreMockRecorder) StoreLogs(logs interface{}) *gomock.Call
StoreLogs indicates an expected call of StoreLogs