Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockElector
- func (m *MockElector) EXPECT() *MockElectorMockRecorder
- func (m *MockElector) GetLeader() (*election.Member, bool)
- func (m *MockElector) GetMembers() []*election.Member
- func (m *MockElector) IsLeader() bool
- func (m *MockElector) ResignLeader(arg0 context.Context, arg1 time.Duration) error
- func (m *MockElector) RunElection(arg0 context.Context) error
- type MockElectorMockRecorder
- func (mr *MockElectorMockRecorder) GetLeader() *gomock.Call
- func (mr *MockElectorMockRecorder) GetMembers() *gomock.Call
- func (mr *MockElectorMockRecorder) IsLeader() *gomock.Call
- func (mr *MockElectorMockRecorder) ResignLeader(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockElectorMockRecorder) RunElection(arg0 interface{}) *gomock.Call
- type MockStorage
- type MockStorageMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockElector ¶
type MockElector struct {
// contains filtered or unexported fields
}
MockElector is a mock of Elector interface.
func NewMockElector ¶
func NewMockElector(ctrl *gomock.Controller) *MockElector
NewMockElector creates a new mock instance.
func (*MockElector) EXPECT ¶
func (m *MockElector) EXPECT() *MockElectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockElector) GetLeader ¶
func (m *MockElector) GetLeader() (*election.Member, bool)
GetLeader mocks base method.
func (*MockElector) GetMembers ¶
func (m *MockElector) GetMembers() []*election.Member
GetMembers mocks base method.
func (*MockElector) ResignLeader ¶
ResignLeader mocks base method.
func (*MockElector) RunElection ¶
func (m *MockElector) RunElection(arg0 context.Context) error
RunElection mocks base method.
type MockElectorMockRecorder ¶
type MockElectorMockRecorder struct {
// contains filtered or unexported fields
}
MockElectorMockRecorder is the mock recorder for MockElector.
func (*MockElectorMockRecorder) GetLeader ¶
func (mr *MockElectorMockRecorder) GetLeader() *gomock.Call
GetLeader indicates an expected call of GetLeader.
func (*MockElectorMockRecorder) GetMembers ¶
func (mr *MockElectorMockRecorder) GetMembers() *gomock.Call
GetMembers indicates an expected call of GetMembers.
func (*MockElectorMockRecorder) IsLeader ¶
func (mr *MockElectorMockRecorder) IsLeader() *gomock.Call
IsLeader indicates an expected call of IsLeader.
func (*MockElectorMockRecorder) ResignLeader ¶
func (mr *MockElectorMockRecorder) ResignLeader(arg0, arg1 interface{}) *gomock.Call
ResignLeader indicates an expected call of ResignLeader.
func (*MockElectorMockRecorder) RunElection ¶
func (mr *MockElectorMockRecorder) RunElection(arg0 interface{}) *gomock.Call
RunElection indicates an expected call of RunElection.
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) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) Get ¶
func (mr *MockStorageMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockStorageMockRecorder) Update ¶
func (mr *MockStorageMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Update indicates an expected call of Update.