Documentation ¶
Overview ¶
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Package mocklib is a generated GoMock package.
Index ¶
- type MockConfChange
- type MockConfChangeMockRecorder
- func (mr *MockConfChangeMockRecorder) Context() *gomock.Call
- func (mr *MockConfChangeMockRecorder) ID() *gomock.Call
- func (mr *MockConfChangeMockRecorder) NodeID() *gomock.Call
- func (mr *MockConfChangeMockRecorder) Type() *gomock.Call
- func (mr *MockConfChangeMockRecorder) Unmarshal(arg0 interface{}) *gomock.Call
- type MockConfState
- type MockConfStateMockRecorder
- type MockConfig
- type MockConfigMockRecorder
- func (mr *MockConfigMockRecorder) ElectionTick() *gomock.Call
- func (mr *MockConfigMockRecorder) HeartbeatTick() *gomock.Call
- func (mr *MockConfigMockRecorder) ID() *gomock.Call
- func (mr *MockConfigMockRecorder) MaxInflightMsgs() *gomock.Call
- func (mr *MockConfigMockRecorder) MaxSizePerMsg() *gomock.Call
- func (mr *MockConfigMockRecorder) Storage() *gomock.Call
- type MockEntry
- type MockEntryMockRecorder
- type MockHardState
- type MockHardStateMockRecorder
- type MockLib
- func (m *MockLib) EXPECT() *MockLibMockRecorder
- func (m *MockLib) NewConfChange(arg0 uint64, arg1 lib.ConfChangeType, arg2 uint64, arg3 []byte) lib.ConfChange
- func (m *MockLib) NewConfig(arg0 uint64, arg1, arg2 int, arg3 lib.Storage, arg4 uint64, arg5 int) lib.Config
- func (m *MockLib) NewMemoryStorage() lib.Storage
- func (m *MockLib) NewPeer(arg0 uint64, arg1 []byte) lib.Peer
- func (m *MockLib) StartNode(arg0 lib.Config, arg1 []lib.Peer) lib.Node
- type MockLibMockRecorder
- func (mr *MockLibMockRecorder) NewConfChange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockLibMockRecorder) NewConfig(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockLibMockRecorder) NewMemoryStorage() *gomock.Call
- func (mr *MockLibMockRecorder) NewPeer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockLibMockRecorder) StartNode(arg0, arg1 interface{}) *gomock.Call
- type MockMessage
- type MockMessageMockRecorder
- type MockNode
- func (m *MockNode) Advance()
- func (m *MockNode) ApplyConfChange(arg0 lib.ConfChange)
- func (m *MockNode) EXPECT() *MockNodeMockRecorder
- func (m *MockNode) Propose(arg0 context.Context, arg1 []byte) error
- func (m *MockNode) ProposeConfChange(arg0 context.Context, arg1 lib.ConfChange) error
- func (m *MockNode) Ready() <-chan lib.Ready
- func (m *MockNode) Step(arg0 context.Context, arg1 []byte) error
- func (m *MockNode) Stop()
- func (m *MockNode) Tick()
- type MockNodeMockRecorder
- func (mr *MockNodeMockRecorder) Advance() *gomock.Call
- func (mr *MockNodeMockRecorder) ApplyConfChange(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Propose(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) ProposeConfChange(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Ready() *gomock.Call
- func (mr *MockNodeMockRecorder) Step(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Stop() *gomock.Call
- func (mr *MockNodeMockRecorder) Tick() *gomock.Call
- type MockPeer
- type MockPeerMockRecorder
- type MockReady
- type MockReadyMockRecorder
- type MockSnapshot
- type MockSnapshotMetadata
- type MockSnapshotMetadataMockRecorder
- type MockSnapshotMockRecorder
- type MockStorage
- func (m *MockStorage) Append(arg0 []lib.Entry) error
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) Entries(arg0, arg1, arg2 uint64) ([]lib.Entry, error)
- func (m *MockStorage) FirstIndex() (uint64, error)
- func (m *MockStorage) InitialState() (lib.HardState, lib.ConfState, error)
- func (m *MockStorage) LastIndex() (uint64, error)
- func (m *MockStorage) Snapshot() (lib.Snapshot, error)
- func (m *MockStorage) Term(arg0 uint64) (uint64, error)
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) Append(arg0 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) Entries(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) FirstIndex() *gomock.Call
- func (mr *MockStorageMockRecorder) InitialState() *gomock.Call
- func (mr *MockStorageMockRecorder) LastIndex() *gomock.Call
- func (mr *MockStorageMockRecorder) Snapshot() *gomock.Call
- func (mr *MockStorageMockRecorder) Term(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfChange ¶
type MockConfChange struct {
// contains filtered or unexported fields
}
MockConfChange is a mock of ConfChange interface
func NewMockConfChange ¶
func NewMockConfChange(ctrl *gomock.Controller) *MockConfChange
NewMockConfChange creates a new mock instance
func (*MockConfChange) Context ¶
func (m *MockConfChange) Context() []byte
Context mocks base method
func (*MockConfChange) EXPECT ¶
func (m *MockConfChange) EXPECT() *MockConfChangeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConfChange) Type ¶
func (m *MockConfChange) Type() lib.ConfChangeType
Type mocks base method
func (*MockConfChange) Unmarshal ¶
func (m *MockConfChange) Unmarshal(arg0 []byte) error
Unmarshal mocks base method
type MockConfChangeMockRecorder ¶
type MockConfChangeMockRecorder struct {
// contains filtered or unexported fields
}
MockConfChangeMockRecorder is the mock recorder for MockConfChange
func (*MockConfChangeMockRecorder) Context ¶
func (mr *MockConfChangeMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockConfChangeMockRecorder) ID ¶
func (mr *MockConfChangeMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
func (*MockConfChangeMockRecorder) NodeID ¶
func (mr *MockConfChangeMockRecorder) NodeID() *gomock.Call
NodeID indicates an expected call of NodeID
func (*MockConfChangeMockRecorder) Type ¶
func (mr *MockConfChangeMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type
func (*MockConfChangeMockRecorder) Unmarshal ¶
func (mr *MockConfChangeMockRecorder) Unmarshal(arg0 interface{}) *gomock.Call
Unmarshal indicates an expected call of Unmarshal
type MockConfState ¶
type MockConfState struct {
// contains filtered or unexported fields
}
MockConfState is a mock of ConfState interface
func NewMockConfState ¶
func NewMockConfState(ctrl *gomock.Controller) *MockConfState
NewMockConfState creates a new mock instance
func (*MockConfState) EXPECT ¶
func (m *MockConfState) EXPECT() *MockConfStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConfState) Learners ¶
func (m *MockConfState) Learners() []uint64
Learners mocks base method
type MockConfStateMockRecorder ¶
type MockConfStateMockRecorder struct {
// contains filtered or unexported fields
}
MockConfStateMockRecorder is the mock recorder for MockConfState
func (*MockConfStateMockRecorder) Learners ¶
func (mr *MockConfStateMockRecorder) Learners() *gomock.Call
Learners indicates an expected call of Learners
func (*MockConfStateMockRecorder) Nodes ¶
func (mr *MockConfStateMockRecorder) Nodes() *gomock.Call
Nodes indicates an expected call of Nodes
type MockConfig ¶
type MockConfig struct {
// contains filtered or unexported fields
}
MockConfig is a mock of Config interface
func NewMockConfig ¶
func NewMockConfig(ctrl *gomock.Controller) *MockConfig
NewMockConfig creates a new mock instance
func (*MockConfig) EXPECT ¶
func (m *MockConfig) EXPECT() *MockConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConfig) ElectionTick ¶
func (m *MockConfig) ElectionTick() int
ElectionTick mocks base method
func (*MockConfig) HeartbeatTick ¶
func (m *MockConfig) HeartbeatTick() int
HeartbeatTick mocks base method
func (*MockConfig) MaxInflightMsgs ¶
func (m *MockConfig) MaxInflightMsgs() int
MaxInflightMsgs mocks base method
func (*MockConfig) MaxSizePerMsg ¶
func (m *MockConfig) MaxSizePerMsg() uint64
MaxSizePerMsg mocks base method
type MockConfigMockRecorder ¶
type MockConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigMockRecorder is the mock recorder for MockConfig
func (*MockConfigMockRecorder) ElectionTick ¶
func (mr *MockConfigMockRecorder) ElectionTick() *gomock.Call
ElectionTick indicates an expected call of ElectionTick
func (*MockConfigMockRecorder) HeartbeatTick ¶
func (mr *MockConfigMockRecorder) HeartbeatTick() *gomock.Call
HeartbeatTick indicates an expected call of HeartbeatTick
func (*MockConfigMockRecorder) ID ¶
func (mr *MockConfigMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
func (*MockConfigMockRecorder) MaxInflightMsgs ¶
func (mr *MockConfigMockRecorder) MaxInflightMsgs() *gomock.Call
MaxInflightMsgs indicates an expected call of MaxInflightMsgs
func (*MockConfigMockRecorder) MaxSizePerMsg ¶
func (mr *MockConfigMockRecorder) MaxSizePerMsg() *gomock.Call
MaxSizePerMsg indicates an expected call of MaxSizePerMsg
func (*MockConfigMockRecorder) Storage ¶
func (mr *MockConfigMockRecorder) Storage() *gomock.Call
Storage indicates an expected call of Storage
type MockEntry ¶
type MockEntry struct {
// contains filtered or unexported fields
}
MockEntry is a mock of Entry interface
func NewMockEntry ¶
func NewMockEntry(ctrl *gomock.Controller) *MockEntry
NewMockEntry creates a new mock instance
func (*MockEntry) EXPECT ¶
func (m *MockEntry) EXPECT() *MockEntryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockEntryMockRecorder ¶
type MockEntryMockRecorder struct {
// contains filtered or unexported fields
}
MockEntryMockRecorder is the mock recorder for MockEntry
func (*MockEntryMockRecorder) Data ¶
func (mr *MockEntryMockRecorder) Data() *gomock.Call
Data indicates an expected call of Data
func (*MockEntryMockRecorder) Index ¶
func (mr *MockEntryMockRecorder) Index() *gomock.Call
Index indicates an expected call of Index
func (*MockEntryMockRecorder) Term ¶
func (mr *MockEntryMockRecorder) Term() *gomock.Call
Term indicates an expected call of Term
func (*MockEntryMockRecorder) Type ¶
func (mr *MockEntryMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type
type MockHardState ¶
type MockHardState struct {
// contains filtered or unexported fields
}
MockHardState is a mock of HardState interface
func NewMockHardState ¶
func NewMockHardState(ctrl *gomock.Controller) *MockHardState
NewMockHardState creates a new mock instance
func (*MockHardState) EXPECT ¶
func (m *MockHardState) EXPECT() *MockHardStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockHardStateMockRecorder ¶
type MockHardStateMockRecorder struct {
// contains filtered or unexported fields
}
MockHardStateMockRecorder is the mock recorder for MockHardState
func (*MockHardStateMockRecorder) Commit ¶
func (mr *MockHardStateMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit
func (*MockHardStateMockRecorder) Term ¶
func (mr *MockHardStateMockRecorder) Term() *gomock.Call
Term indicates an expected call of Term
func (*MockHardStateMockRecorder) Vote ¶
func (mr *MockHardStateMockRecorder) Vote() *gomock.Call
Vote indicates an expected call of Vote
type MockLib ¶
type MockLib struct {
// contains filtered or unexported fields
}
MockLib is a mock of Lib interface
func NewMockLib ¶
func NewMockLib(ctrl *gomock.Controller) *MockLib
NewMockLib creates a new mock instance
func (*MockLib) EXPECT ¶
func (m *MockLib) EXPECT() *MockLibMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLib) NewConfChange ¶
func (m *MockLib) NewConfChange(arg0 uint64, arg1 lib.ConfChangeType, arg2 uint64, arg3 []byte) lib.ConfChange
NewConfChange mocks base method
func (*MockLib) NewConfig ¶
func (m *MockLib) NewConfig(arg0 uint64, arg1, arg2 int, arg3 lib.Storage, arg4 uint64, arg5 int) lib.Config
NewConfig mocks base method
func (*MockLib) NewMemoryStorage ¶
NewMemoryStorage mocks base method
type MockLibMockRecorder ¶
type MockLibMockRecorder struct {
// contains filtered or unexported fields
}
MockLibMockRecorder is the mock recorder for MockLib
func (*MockLibMockRecorder) NewConfChange ¶
func (mr *MockLibMockRecorder) NewConfChange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
NewConfChange indicates an expected call of NewConfChange
func (*MockLibMockRecorder) NewConfig ¶
func (mr *MockLibMockRecorder) NewConfig(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
NewConfig indicates an expected call of NewConfig
func (*MockLibMockRecorder) NewMemoryStorage ¶
func (mr *MockLibMockRecorder) NewMemoryStorage() *gomock.Call
NewMemoryStorage indicates an expected call of NewMemoryStorage
func (*MockLibMockRecorder) NewPeer ¶
func (mr *MockLibMockRecorder) NewPeer(arg0, arg1 interface{}) *gomock.Call
NewPeer indicates an expected call of NewPeer
func (*MockLibMockRecorder) StartNode ¶
func (mr *MockLibMockRecorder) StartNode(arg0, arg1 interface{}) *gomock.Call
StartNode indicates an expected call of StartNode
type MockMessage ¶
type MockMessage struct {
// contains filtered or unexported fields
}
MockMessage is a mock of Message interface
func NewMockMessage ¶
func NewMockMessage(ctrl *gomock.Controller) *MockMessage
NewMockMessage creates a new mock instance
func (*MockMessage) EXPECT ¶
func (m *MockMessage) EXPECT() *MockMessageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockMessageMockRecorder ¶
type MockMessageMockRecorder struct {
// contains filtered or unexported fields
}
MockMessageMockRecorder is the mock recorder for MockMessage
func (*MockMessageMockRecorder) Data ¶
func (mr *MockMessageMockRecorder) Data() *gomock.Call
Data indicates an expected call of Data
func (*MockMessageMockRecorder) To ¶
func (mr *MockMessageMockRecorder) To() *gomock.Call
To indicates an expected call of To
type MockNode ¶
type MockNode struct {
// contains filtered or unexported fields
}
MockNode is a mock of Node interface
func NewMockNode ¶
func NewMockNode(ctrl *gomock.Controller) *MockNode
NewMockNode creates a new mock instance
func (*MockNode) ApplyConfChange ¶
func (m *MockNode) ApplyConfChange(arg0 lib.ConfChange)
ApplyConfChange mocks base method
func (*MockNode) EXPECT ¶
func (m *MockNode) EXPECT() *MockNodeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNode) ProposeConfChange ¶
ProposeConfChange mocks base method
type MockNodeMockRecorder ¶
type MockNodeMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeMockRecorder is the mock recorder for MockNode
func (*MockNodeMockRecorder) Advance ¶
func (mr *MockNodeMockRecorder) Advance() *gomock.Call
Advance indicates an expected call of Advance
func (*MockNodeMockRecorder) ApplyConfChange ¶
func (mr *MockNodeMockRecorder) ApplyConfChange(arg0 interface{}) *gomock.Call
ApplyConfChange indicates an expected call of ApplyConfChange
func (*MockNodeMockRecorder) Propose ¶
func (mr *MockNodeMockRecorder) Propose(arg0, arg1 interface{}) *gomock.Call
Propose indicates an expected call of Propose
func (*MockNodeMockRecorder) ProposeConfChange ¶
func (mr *MockNodeMockRecorder) ProposeConfChange(arg0, arg1 interface{}) *gomock.Call
ProposeConfChange indicates an expected call of ProposeConfChange
func (*MockNodeMockRecorder) Ready ¶
func (mr *MockNodeMockRecorder) Ready() *gomock.Call
Ready indicates an expected call of Ready
func (*MockNodeMockRecorder) Step ¶
func (mr *MockNodeMockRecorder) Step(arg0, arg1 interface{}) *gomock.Call
Step indicates an expected call of Step
func (*MockNodeMockRecorder) Stop ¶
func (mr *MockNodeMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockNodeMockRecorder) Tick ¶
func (mr *MockNodeMockRecorder) Tick() *gomock.Call
Tick indicates an expected call of Tick
type MockPeer ¶
type MockPeer struct {
// contains filtered or unexported fields
}
MockPeer is a mock of Peer interface
func NewMockPeer ¶
func NewMockPeer(ctrl *gomock.Controller) *MockPeer
NewMockPeer creates a new mock instance
func (*MockPeer) EXPECT ¶
func (m *MockPeer) EXPECT() *MockPeerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockPeerMockRecorder ¶
type MockPeerMockRecorder struct {
// contains filtered or unexported fields
}
MockPeerMockRecorder is the mock recorder for MockPeer
func (*MockPeerMockRecorder) Context ¶
func (mr *MockPeerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockPeerMockRecorder) ID ¶
func (mr *MockPeerMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
type MockReady ¶
type MockReady struct {
// contains filtered or unexported fields
}
MockReady is a mock of Ready interface
func NewMockReady ¶
func NewMockReady(ctrl *gomock.Controller) *MockReady
NewMockReady creates a new mock instance
func (*MockReady) CommittedEntries ¶
CommittedEntries mocks base method
func (*MockReady) EXPECT ¶
func (m *MockReady) EXPECT() *MockReadyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockReadyMockRecorder ¶
type MockReadyMockRecorder struct {
// contains filtered or unexported fields
}
MockReadyMockRecorder is the mock recorder for MockReady
func (*MockReadyMockRecorder) CommittedEntries ¶
func (mr *MockReadyMockRecorder) CommittedEntries() *gomock.Call
CommittedEntries indicates an expected call of CommittedEntries
func (*MockReadyMockRecorder) Entries ¶
func (mr *MockReadyMockRecorder) Entries() *gomock.Call
Entries indicates an expected call of Entries
func (*MockReadyMockRecorder) Messages ¶
func (mr *MockReadyMockRecorder) Messages() *gomock.Call
Messages indicates an expected call of Messages
type MockSnapshot ¶
type MockSnapshot struct {
// contains filtered or unexported fields
}
MockSnapshot is a mock of Snapshot interface
func NewMockSnapshot ¶
func NewMockSnapshot(ctrl *gomock.Controller) *MockSnapshot
NewMockSnapshot creates a new mock instance
func (*MockSnapshot) EXPECT ¶
func (m *MockSnapshot) EXPECT() *MockSnapshotMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSnapshot) Metadata ¶
func (m *MockSnapshot) Metadata() lib.SnapshotMetadata
Metadata mocks base method
type MockSnapshotMetadata ¶
type MockSnapshotMetadata struct {
// contains filtered or unexported fields
}
MockSnapshotMetadata is a mock of SnapshotMetadata interface
func NewMockSnapshotMetadata ¶
func NewMockSnapshotMetadata(ctrl *gomock.Controller) *MockSnapshotMetadata
NewMockSnapshotMetadata creates a new mock instance
func (*MockSnapshotMetadata) ConfState ¶
func (m *MockSnapshotMetadata) ConfState() lib.ConfState
ConfState mocks base method
func (*MockSnapshotMetadata) EXPECT ¶
func (m *MockSnapshotMetadata) EXPECT() *MockSnapshotMetadataMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSnapshotMetadata) Index ¶
func (m *MockSnapshotMetadata) Index() uint64
Index mocks base method
func (*MockSnapshotMetadata) Term ¶
func (m *MockSnapshotMetadata) Term() uint64
Term mocks base method
type MockSnapshotMetadataMockRecorder ¶
type MockSnapshotMetadataMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotMetadataMockRecorder is the mock recorder for MockSnapshotMetadata
func (*MockSnapshotMetadataMockRecorder) ConfState ¶
func (mr *MockSnapshotMetadataMockRecorder) ConfState() *gomock.Call
ConfState indicates an expected call of ConfState
func (*MockSnapshotMetadataMockRecorder) Index ¶
func (mr *MockSnapshotMetadataMockRecorder) Index() *gomock.Call
Index indicates an expected call of Index
func (*MockSnapshotMetadataMockRecorder) Term ¶
func (mr *MockSnapshotMetadataMockRecorder) Term() *gomock.Call
Term indicates an expected call of Term
type MockSnapshotMockRecorder ¶
type MockSnapshotMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotMockRecorder is the mock recorder for MockSnapshot
func (*MockSnapshotMockRecorder) Data ¶
func (mr *MockSnapshotMockRecorder) Data() *gomock.Call
Data indicates an expected call of Data
func (*MockSnapshotMockRecorder) Metadata ¶
func (mr *MockSnapshotMockRecorder) Metadata() *gomock.Call
Metadata indicates an expected call of Metadata
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance
func (*MockStorage) Append ¶
func (m *MockStorage) Append(arg0 []lib.Entry) error
Append mocks base method
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStorage) Entries ¶
func (m *MockStorage) Entries(arg0, arg1, arg2 uint64) ([]lib.Entry, error)
Entries mocks base method
func (*MockStorage) FirstIndex ¶
func (m *MockStorage) FirstIndex() (uint64, error)
FirstIndex mocks base method
func (*MockStorage) InitialState ¶
InitialState mocks base method
func (*MockStorage) LastIndex ¶
func (m *MockStorage) LastIndex() (uint64, error)
LastIndex mocks base method
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage
func (*MockStorageMockRecorder) Append ¶
func (mr *MockStorageMockRecorder) Append(arg0 interface{}) *gomock.Call
Append indicates an expected call of Append
func (*MockStorageMockRecorder) Entries ¶
func (mr *MockStorageMockRecorder) Entries(arg0, arg1, arg2 interface{}) *gomock.Call
Entries indicates an expected call of Entries
func (*MockStorageMockRecorder) FirstIndex ¶
func (mr *MockStorageMockRecorder) FirstIndex() *gomock.Call
FirstIndex indicates an expected call of FirstIndex
func (*MockStorageMockRecorder) InitialState ¶
func (mr *MockStorageMockRecorder) InitialState() *gomock.Call
InitialState indicates an expected call of InitialState
func (*MockStorageMockRecorder) LastIndex ¶
func (mr *MockStorageMockRecorder) LastIndex() *gomock.Call
LastIndex indicates an expected call of LastIndex
func (*MockStorageMockRecorder) Snapshot ¶
func (mr *MockStorageMockRecorder) Snapshot() *gomock.Call
Snapshot indicates an expected call of Snapshot
func (*MockStorageMockRecorder) Term ¶
func (mr *MockStorageMockRecorder) Term(arg0 interface{}) *gomock.Call
Term indicates an expected call of Term