Documentation ¶
Overview ¶
Package p2p_mock is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) Broadcast(arg0 []byte, arg1 p2p.MessageType, arg2 p2p.MessagePriority)
- func (m *MockService) ConnectBPs(arg0 []string)
- func (m *MockService) Deregister(arg0 string, arg1 ...p2p.MessageType)
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetAllNeighbors() []*p2p.Peer
- func (m *MockService) ID() string
- func (m *MockService) PutPeerToBlack(arg0 string)
- func (m *MockService) Register(arg0 string, arg1 ...p2p.MessageType) chan p2p.IncomingMessage
- func (m *MockService) SendToPeer(arg0 go_libp2p_peer.ID, arg1 []byte, arg2 p2p.MessageType, ...)
- func (m *MockService) Start() error
- func (m *MockService) Stop()
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) Broadcast(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ConnectBPs(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Deregister(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetAllNeighbors() *gomock.Call
- func (mr *MockServiceMockRecorder) ID() *gomock.Call
- func (mr *MockServiceMockRecorder) PutPeerToBlack(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Register(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) SendToPeer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Start() *gomock.Call
- func (mr *MockServiceMockRecorder) Stop() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance
func (*MockService) Broadcast ¶
func (m *MockService) Broadcast(arg0 []byte, arg1 p2p.MessageType, arg2 p2p.MessagePriority)
Broadcast mocks base method
func (*MockService) ConnectBPs ¶
func (m *MockService) ConnectBPs(arg0 []string)
ConnectBPs mocks base method
func (*MockService) Deregister ¶
func (m *MockService) Deregister(arg0 string, arg1 ...p2p.MessageType)
Deregister mocks base method
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockService) GetAllNeighbors ¶ added in v1.1.0
func (m *MockService) GetAllNeighbors() []*p2p.Peer
GetAllNeighbors mocks base method
func (*MockService) PutPeerToBlack ¶ added in v1.1.0
func (m *MockService) PutPeerToBlack(arg0 string)
PutPeerToBlack mocks base method
func (*MockService) Register ¶
func (m *MockService) Register(arg0 string, arg1 ...p2p.MessageType) chan p2p.IncomingMessage
Register mocks base method
func (*MockService) SendToPeer ¶
func (m *MockService) SendToPeer(arg0 go_libp2p_peer.ID, arg1 []byte, arg2 p2p.MessageType, arg3 p2p.MessagePriority)
SendToPeer mocks base method
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService
func (*MockServiceMockRecorder) Broadcast ¶
func (mr *MockServiceMockRecorder) Broadcast(arg0, arg1, arg2 interface{}) *gomock.Call
Broadcast indicates an expected call of Broadcast
func (*MockServiceMockRecorder) ConnectBPs ¶
func (mr *MockServiceMockRecorder) ConnectBPs(arg0 interface{}) *gomock.Call
ConnectBPs indicates an expected call of ConnectBPs
func (*MockServiceMockRecorder) Deregister ¶
func (mr *MockServiceMockRecorder) Deregister(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Deregister indicates an expected call of Deregister
func (*MockServiceMockRecorder) GetAllNeighbors ¶ added in v1.1.0
func (mr *MockServiceMockRecorder) GetAllNeighbors() *gomock.Call
GetAllNeighbors indicates an expected call of GetAllNeighbors
func (*MockServiceMockRecorder) ID ¶
func (mr *MockServiceMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
func (*MockServiceMockRecorder) PutPeerToBlack ¶ added in v1.1.0
func (mr *MockServiceMockRecorder) PutPeerToBlack(arg0 interface{}) *gomock.Call
PutPeerToBlack indicates an expected call of PutPeerToBlack
func (*MockServiceMockRecorder) Register ¶
func (mr *MockServiceMockRecorder) Register(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Register indicates an expected call of Register
func (*MockServiceMockRecorder) SendToPeer ¶
func (mr *MockServiceMockRecorder) SendToPeer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SendToPeer indicates an expected call of SendToPeer
func (*MockServiceMockRecorder) Start ¶
func (mr *MockServiceMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockServiceMockRecorder) Stop ¶
func (mr *MockServiceMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop