Documentation ¶
Overview ¶
Package membershipmock is a generated GoMock package.
Index ¶
- type MockConfig
- func (m *MockConfig) AllowPipelining() bool
- func (m *MockConfig) Context() context.Context
- func (m *MockConfig) Dial() transport.Dial
- func (m *MockConfig) DrainTimeout() time.Duration
- func (m *MockConfig) EXPECT() *MockConfigMockRecorder
- func (m *MockConfig) Logger() raftlog.Logger
- func (m *MockConfig) Reporter() membership.Reporter
- func (m *MockConfig) StreamTimeout() time.Duration
- type MockConfigMockRecorder
- func (mr *MockConfigMockRecorder) AllowPipelining() *gomock.Call
- func (mr *MockConfigMockRecorder) Context() *gomock.Call
- func (mr *MockConfigMockRecorder) Dial() *gomock.Call
- func (mr *MockConfigMockRecorder) DrainTimeout() *gomock.Call
- func (mr *MockConfigMockRecorder) Logger() *gomock.Call
- func (mr *MockConfigMockRecorder) Reporter() *gomock.Call
- func (mr *MockConfigMockRecorder) StreamTimeout() *gomock.Call
- type MockMember
- func (m *MockMember) ActiveSince() time.Time
- func (m *MockMember) Address() string
- func (m *MockMember) Close() error
- func (m *MockMember) EXPECT() *MockMemberMockRecorder
- func (m *MockMember) ID() uint64
- func (m *MockMember) IsActive() bool
- func (m *MockMember) Raw() raftpb.Member
- func (m *MockMember) Send(arg0 raftpb0.Message) error
- func (m *MockMember) TearDown(ctx context.Context) error
- func (m *MockMember) Type() raftpb.MemberType
- func (m_2 *MockMember) Update(m raftpb.Member) error
- type MockMemberMockRecorder
- func (mr *MockMemberMockRecorder) ActiveSince() *gomock.Call
- func (mr *MockMemberMockRecorder) Address() *gomock.Call
- func (mr *MockMemberMockRecorder) Close() *gomock.Call
- func (mr *MockMemberMockRecorder) ID() *gomock.Call
- func (mr *MockMemberMockRecorder) IsActive() *gomock.Call
- func (mr *MockMemberMockRecorder) Raw() *gomock.Call
- func (mr *MockMemberMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockMemberMockRecorder) TearDown(ctx interface{}) *gomock.Call
- func (mr *MockMemberMockRecorder) Type() *gomock.Call
- func (mr *MockMemberMockRecorder) Update(m interface{}) *gomock.Call
- type MockPool
- func (m *MockPool) Add(arg0 raftpb.Member) error
- func (m *MockPool) EXPECT() *MockPoolMockRecorder
- func (m *MockPool) Get(arg0 uint64) (membership.Member, bool)
- func (m *MockPool) Members() []membership.Member
- func (m *MockPool) NextID() uint64
- func (m *MockPool) RegisterTypeMatcher(arg0 func(raftpb.Member) raftpb.MemberType)
- func (m *MockPool) Remove(arg0 raftpb.Member) error
- func (m *MockPool) Restore(arg0 []raftpb.Member)
- func (m *MockPool) Snapshot() []raftpb.Member
- func (m *MockPool) TearDown(arg0 context.Context) error
- func (m *MockPool) Update(arg0 raftpb.Member) error
- type MockPoolMockRecorder
- func (mr *MockPoolMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) Members() *gomock.Call
- func (mr *MockPoolMockRecorder) NextID() *gomock.Call
- func (mr *MockPoolMockRecorder) RegisterTypeMatcher(arg0 interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) Restore(arg0 interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) Snapshot() *gomock.Call
- func (mr *MockPoolMockRecorder) TearDown(arg0 interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) Update(arg0 interface{}) *gomock.Call
- type MockReporter
- type MockReporterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) AllowPipelining ¶
func (m *MockConfig) AllowPipelining() bool
AllowPipelining mocks base method.
func (*MockConfig) Context ¶
func (m *MockConfig) Context() context.Context
Context mocks base method.
func (*MockConfig) DrainTimeout ¶
func (m *MockConfig) DrainTimeout() time.Duration
DrainTimeout mocks base method.
func (*MockConfig) EXPECT ¶
func (m *MockConfig) EXPECT() *MockConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfig) Reporter ¶
func (m *MockConfig) Reporter() membership.Reporter
Reporter mocks base method.
func (*MockConfig) StreamTimeout ¶
func (m *MockConfig) StreamTimeout() time.Duration
StreamTimeout mocks base method.
type MockConfigMockRecorder ¶
type MockConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigMockRecorder is the mock recorder for MockConfig.
func (*MockConfigMockRecorder) AllowPipelining ¶
func (mr *MockConfigMockRecorder) AllowPipelining() *gomock.Call
AllowPipelining indicates an expected call of AllowPipelining.
func (*MockConfigMockRecorder) Context ¶
func (mr *MockConfigMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockConfigMockRecorder) Dial ¶
func (mr *MockConfigMockRecorder) Dial() *gomock.Call
Dial indicates an expected call of Dial.
func (*MockConfigMockRecorder) DrainTimeout ¶
func (mr *MockConfigMockRecorder) DrainTimeout() *gomock.Call
DrainTimeout indicates an expected call of DrainTimeout.
func (*MockConfigMockRecorder) Logger ¶
func (mr *MockConfigMockRecorder) Logger() *gomock.Call
Logger indicates an expected call of Logger.
func (*MockConfigMockRecorder) Reporter ¶
func (mr *MockConfigMockRecorder) Reporter() *gomock.Call
Reporter indicates an expected call of Reporter.
func (*MockConfigMockRecorder) StreamTimeout ¶
func (mr *MockConfigMockRecorder) StreamTimeout() *gomock.Call
StreamTimeout indicates an expected call of StreamTimeout.
type MockMember ¶
type MockMember struct {
// contains filtered or unexported fields
}
MockMember is a mock of Member interface.
func NewMockMember ¶
func NewMockMember(ctrl *gomock.Controller) *MockMember
NewMockMember creates a new mock instance.
func (*MockMember) ActiveSince ¶
func (m *MockMember) ActiveSince() time.Time
ActiveSince mocks base method.
func (*MockMember) EXPECT ¶
func (m *MockMember) EXPECT() *MockMemberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMember) Send ¶
func (m *MockMember) Send(arg0 raftpb0.Message) error
Send mocks base method.
type MockMemberMockRecorder ¶
type MockMemberMockRecorder struct {
// contains filtered or unexported fields
}
MockMemberMockRecorder is the mock recorder for MockMember.
func (*MockMemberMockRecorder) ActiveSince ¶
func (mr *MockMemberMockRecorder) ActiveSince() *gomock.Call
ActiveSince indicates an expected call of ActiveSince.
func (*MockMemberMockRecorder) Address ¶
func (mr *MockMemberMockRecorder) Address() *gomock.Call
Address indicates an expected call of Address.
func (*MockMemberMockRecorder) Close ¶
func (mr *MockMemberMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockMemberMockRecorder) ID ¶
func (mr *MockMemberMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockMemberMockRecorder) IsActive ¶
func (mr *MockMemberMockRecorder) IsActive() *gomock.Call
IsActive indicates an expected call of IsActive.
func (*MockMemberMockRecorder) Raw ¶
func (mr *MockMemberMockRecorder) Raw() *gomock.Call
Raw indicates an expected call of Raw.
func (*MockMemberMockRecorder) Send ¶
func (mr *MockMemberMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockMemberMockRecorder) TearDown ¶
func (mr *MockMemberMockRecorder) TearDown(ctx interface{}) *gomock.Call
TearDown indicates an expected call of TearDown.
func (*MockMemberMockRecorder) Type ¶
func (mr *MockMemberMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type.
func (*MockMemberMockRecorder) Update ¶
func (mr *MockMemberMockRecorder) Update(m interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockPool ¶
type MockPool struct {
// contains filtered or unexported fields
}
MockPool is a mock of Pool interface.
func NewMockPool ¶
func NewMockPool(ctrl *gomock.Controller) *MockPool
NewMockPool creates a new mock instance.
func (*MockPool) EXPECT ¶
func (m *MockPool) EXPECT() *MockPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPool) Get ¶
func (m *MockPool) Get(arg0 uint64) (membership.Member, bool)
Get mocks base method.
func (*MockPool) Members ¶
func (m *MockPool) Members() []membership.Member
Members mocks base method.
func (*MockPool) RegisterTypeMatcher ¶
func (m *MockPool) RegisterTypeMatcher(arg0 func(raftpb.Member) raftpb.MemberType)
RegisterTypeMatcher mocks base method.
type MockPoolMockRecorder ¶
type MockPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockPoolMockRecorder is the mock recorder for MockPool.
func (*MockPoolMockRecorder) Add ¶
func (mr *MockPoolMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockPoolMockRecorder) Get ¶
func (mr *MockPoolMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockPoolMockRecorder) Members ¶
func (mr *MockPoolMockRecorder) Members() *gomock.Call
Members indicates an expected call of Members.
func (*MockPoolMockRecorder) NextID ¶
func (mr *MockPoolMockRecorder) NextID() *gomock.Call
NextID indicates an expected call of NextID.
func (*MockPoolMockRecorder) RegisterTypeMatcher ¶
func (mr *MockPoolMockRecorder) RegisterTypeMatcher(arg0 interface{}) *gomock.Call
RegisterTypeMatcher indicates an expected call of RegisterTypeMatcher.
func (*MockPoolMockRecorder) Remove ¶
func (mr *MockPoolMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockPoolMockRecorder) Restore ¶
func (mr *MockPoolMockRecorder) Restore(arg0 interface{}) *gomock.Call
Restore indicates an expected call of Restore.
func (*MockPoolMockRecorder) Snapshot ¶
func (mr *MockPoolMockRecorder) Snapshot() *gomock.Call
Snapshot indicates an expected call of Snapshot.
func (*MockPoolMockRecorder) TearDown ¶
func (mr *MockPoolMockRecorder) TearDown(arg0 interface{}) *gomock.Call
TearDown indicates an expected call of TearDown.
func (*MockPoolMockRecorder) Update ¶
func (mr *MockPoolMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockReporter ¶
type MockReporter struct {
// contains filtered or unexported fields
}
MockReporter is a mock of Reporter interface.
func NewMockReporter ¶
func NewMockReporter(ctrl *gomock.Controller) *MockReporter
NewMockReporter creates a new mock instance.
func (*MockReporter) EXPECT ¶
func (m *MockReporter) EXPECT() *MockReporterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReporter) ReportShutdown ¶
func (m *MockReporter) ReportShutdown(id uint64)
ReportShutdown mocks base method.
func (*MockReporter) ReportSnapshot ¶
func (m *MockReporter) ReportSnapshot(id uint64, status raft.SnapshotStatus)
ReportSnapshot mocks base method.
func (*MockReporter) ReportUnreachable ¶
func (m *MockReporter) ReportUnreachable(id uint64)
ReportUnreachable mocks base method.
type MockReporterMockRecorder ¶
type MockReporterMockRecorder struct {
// contains filtered or unexported fields
}
MockReporterMockRecorder is the mock recorder for MockReporter.
func (*MockReporterMockRecorder) ReportShutdown ¶
func (mr *MockReporterMockRecorder) ReportShutdown(id interface{}) *gomock.Call
ReportShutdown indicates an expected call of ReportShutdown.
func (*MockReporterMockRecorder) ReportSnapshot ¶
func (mr *MockReporterMockRecorder) ReportSnapshot(id, status interface{}) *gomock.Call
ReportSnapshot indicates an expected call of ReportSnapshot.
func (*MockReporterMockRecorder) ReportUnreachable ¶
func (mr *MockReporterMockRecorder) ReportUnreachable(id interface{}) *gomock.Call
ReportUnreachable indicates an expected call of ReportUnreachable.