Documentation ¶
Overview ¶
Package mock_p2p is a generated GoMock package.
Index ¶
- type MockHost
- func (m *MockHost) AddPeer(arg0 *p2p.Peer) error
- func (m *MockHost) Close() error
- func (m *MockHost) ConnectHostPeer(arg0 p2p.Peer)
- func (m *MockHost) EXPECT() *MockHostMockRecorder
- func (m *MockHost) GetID() go_libp2p_peer.ID
- func (m *MockHost) GetP2PHost() go_libp2p_host.Host
- func (m *MockHost) GetPeerCount() int
- func (m *MockHost) GetSelfPeer() p2p.Peer
- func (m *MockHost) GroupReceiver(arg0 node.GroupID) (p2p.GroupReceiver, error)
- func (m *MockHost) SendMessageToGroups(groups []node.GroupID, msg []byte) error
- type MockHostMockRecorder
- func (mr *MockHostMockRecorder) AddPeer(arg0 interface{}) *gomock.Call
- func (mr *MockHostMockRecorder) Close() *gomock.Call
- func (mr *MockHostMockRecorder) ConnectHostPeer(arg0 interface{}) *gomock.Call
- func (mr *MockHostMockRecorder) GetID() *gomock.Call
- func (mr *MockHostMockRecorder) GetP2PHost() *gomock.Call
- func (mr *MockHostMockRecorder) GetPeerCount() *gomock.Call
- func (mr *MockHostMockRecorder) GetSelfPeer() *gomock.Call
- func (mr *MockHostMockRecorder) GroupReceiver(arg0 interface{}) *gomock.Call
- func (mr *MockHostMockRecorder) SendMessageToGroups(groups, msg interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHost ¶
type MockHost struct {
// contains filtered or unexported fields
}
MockHost is a mock of Host interface
func NewMockHost ¶
func NewMockHost(ctrl *gomock.Controller) *MockHost
NewMockHost creates a new mock instance
func (*MockHost) ConnectHostPeer ¶
ConnectHostPeer mocks base method
func (*MockHost) EXPECT ¶
func (m *MockHost) EXPECT() *MockHostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHost) GetP2PHost ¶
func (m *MockHost) GetP2PHost() go_libp2p_host.Host
GetP2PHost mocks base method
func (*MockHost) GetPeerCount ¶
GetPeerCount mocks base method
func (*MockHost) GetSelfPeer ¶
GetSelfPeer mocks base method
func (*MockHost) GroupReceiver ¶
GroupReceiver mocks base method
type MockHostMockRecorder ¶
type MockHostMockRecorder struct {
// contains filtered or unexported fields
}
MockHostMockRecorder is the mock recorder for MockHost
func (*MockHostMockRecorder) AddPeer ¶
func (mr *MockHostMockRecorder) AddPeer(arg0 interface{}) *gomock.Call
AddPeer indicates an expected call of AddPeer
func (*MockHostMockRecorder) Close ¶
func (mr *MockHostMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockHostMockRecorder) ConnectHostPeer ¶
func (mr *MockHostMockRecorder) ConnectHostPeer(arg0 interface{}) *gomock.Call
ConnectHostPeer indicates an expected call of ConnectHostPeer
func (*MockHostMockRecorder) GetID ¶
func (mr *MockHostMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID
func (*MockHostMockRecorder) GetP2PHost ¶
func (mr *MockHostMockRecorder) GetP2PHost() *gomock.Call
GetP2PHost indicates an expected call of GetP2PHost
func (*MockHostMockRecorder) GetPeerCount ¶
func (mr *MockHostMockRecorder) GetPeerCount() *gomock.Call
GetPeerCount indicates an expected call of GetPeerCount
func (*MockHostMockRecorder) GetSelfPeer ¶
func (mr *MockHostMockRecorder) GetSelfPeer() *gomock.Call
GetSelfPeer indicates an expected call of GetSelfPeer
func (*MockHostMockRecorder) GroupReceiver ¶
func (mr *MockHostMockRecorder) GroupReceiver(arg0 interface{}) *gomock.Call
GroupReceiver indicates an expected call of GroupReceiver
func (*MockHostMockRecorder) SendMessageToGroups ¶
func (mr *MockHostMockRecorder) SendMessageToGroups(groups, msg interface{}) *gomock.Call
SendMessageToGroups indicates an expected call of SendMessageToGroups