Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockPeer
- func (m *MockPeer) Address() string
- func (m *MockPeer) Close()
- func (m *MockPeer) ClusterSize() int
- func (m *MockPeer) Current(arg0 members.PeerType, arg1 bool) ([]string, error)
- func (m *MockPeer) DeregisterEventHandler(arg0 members.EventHandler) error
- func (m *MockPeer) DispatchEvent(arg0 members.Event) error
- func (m *MockPeer) EXPECT() *MockPeerMockRecorder
- func (m *MockPeer) Join() (int, error)
- func (m *MockPeer) Leave() error
- func (m *MockPeer) Name() string
- func (m *MockPeer) RegisterEventHandler(arg0 members.EventHandler) error
- func (m *MockPeer) State() map[string]interface{}
- type MockPeerMockRecorder
- func (mr *MockPeerMockRecorder) Address() *gomock.Call
- func (mr *MockPeerMockRecorder) Close() *gomock.Call
- func (mr *MockPeerMockRecorder) ClusterSize() *gomock.Call
- func (mr *MockPeerMockRecorder) Current(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPeerMockRecorder) DeregisterEventHandler(arg0 interface{}) *gomock.Call
- func (mr *MockPeerMockRecorder) DispatchEvent(arg0 interface{}) *gomock.Call
- func (mr *MockPeerMockRecorder) Join() *gomock.Call
- func (mr *MockPeerMockRecorder) Leave() *gomock.Call
- func (mr *MockPeerMockRecorder) Name() *gomock.Call
- func (mr *MockPeerMockRecorder) RegisterEventHandler(arg0 interface{}) *gomock.Call
- func (mr *MockPeerMockRecorder) State() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) DeregisterEventHandler ¶
func (m *MockPeer) DeregisterEventHandler(arg0 members.EventHandler) error
DeregisterEventHandler mocks base method
func (*MockPeer) DispatchEvent ¶
DispatchEvent mocks base method
func (*MockPeer) EXPECT ¶
func (m *MockPeer) EXPECT() *MockPeerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPeer) RegisterEventHandler ¶
func (m *MockPeer) RegisterEventHandler(arg0 members.EventHandler) error
RegisterEventHandler mocks base method
type MockPeerMockRecorder ¶
type MockPeerMockRecorder struct {
// contains filtered or unexported fields
}
MockPeerMockRecorder is the mock recorder for MockPeer
func (*MockPeerMockRecorder) Address ¶
func (mr *MockPeerMockRecorder) Address() *gomock.Call
Address indicates an expected call of Address
func (*MockPeerMockRecorder) Close ¶
func (mr *MockPeerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockPeerMockRecorder) ClusterSize ¶
func (mr *MockPeerMockRecorder) ClusterSize() *gomock.Call
ClusterSize indicates an expected call of ClusterSize
func (*MockPeerMockRecorder) Current ¶
func (mr *MockPeerMockRecorder) Current(arg0, arg1 interface{}) *gomock.Call
Current indicates an expected call of Current
func (*MockPeerMockRecorder) DeregisterEventHandler ¶
func (mr *MockPeerMockRecorder) DeregisterEventHandler(arg0 interface{}) *gomock.Call
DeregisterEventHandler indicates an expected call of DeregisterEventHandler
func (*MockPeerMockRecorder) DispatchEvent ¶
func (mr *MockPeerMockRecorder) DispatchEvent(arg0 interface{}) *gomock.Call
DispatchEvent indicates an expected call of DispatchEvent
func (*MockPeerMockRecorder) Join ¶
func (mr *MockPeerMockRecorder) Join() *gomock.Call
Join indicates an expected call of Join
func (*MockPeerMockRecorder) Leave ¶
func (mr *MockPeerMockRecorder) Leave() *gomock.Call
Leave indicates an expected call of Leave
func (*MockPeerMockRecorder) Name ¶
func (mr *MockPeerMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockPeerMockRecorder) RegisterEventHandler ¶
func (mr *MockPeerMockRecorder) RegisterEventHandler(arg0 interface{}) *gomock.Call
RegisterEventHandler indicates an expected call of RegisterEventHandler
func (*MockPeerMockRecorder) State ¶
func (mr *MockPeerMockRecorder) State() *gomock.Call
State indicates an expected call of State