mock_p2p

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_p2p is a generated GoMock package.

Index

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) AddPeer

func (m *MockHost) AddPeer(arg0 *p2p.Peer) error

AddPeer mocks base method

func (*MockHost) Close

func (m *MockHost) Close() error

Close mocks base method

func (*MockHost) ConnectHostPeer

func (m *MockHost) ConnectHostPeer(arg0 p2p.Peer)

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) GetID

func (m *MockHost) GetID() go_libp2p_peer.ID

GetID mocks base method

func (*MockHost) GetP2PHost

func (m *MockHost) GetP2PHost() go_libp2p_host.Host

GetP2PHost mocks base method

func (*MockHost) GetPeerCount

func (m *MockHost) GetPeerCount() int

GetPeerCount mocks base method

func (*MockHost) GetSelfPeer

func (m *MockHost) GetSelfPeer() p2p.Peer

GetSelfPeer mocks base method

func (*MockHost) GroupReceiver

func (m *MockHost) GroupReceiver(arg0 node.GroupID) (p2p.GroupReceiver, error)

GroupReceiver mocks base method

func (*MockHost) SendMessageToGroups

func (m *MockHost) SendMessageToGroups(groups []node.GroupID, msg []byte) error

SendMessageToGroups 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL