Documentation ¶
Overview ¶
Package mock_orderPeermgr is a generated GoMock package.
Index ¶
- type MockBasicPeerManager
- func (m *MockBasicPeerManager) AsyncSend(arg0 peer_mgr.KeyType, arg1 *pb.Message) error
- func (m *MockBasicPeerManager) CountConnectedPeers() uint64
- func (m *MockBasicPeerManager) EXPECT() *MockBasicPeerManagerMockRecorder
- func (m *MockBasicPeerManager) Peers() map[string]*peer.AddrInfo
- func (m *MockBasicPeerManager) Send(arg0 peer_mgr.KeyType, arg1 *pb.Message) (*pb.Message, error)
- func (m *MockBasicPeerManager) Start() error
- func (m *MockBasicPeerManager) Stop() error
- type MockBasicPeerManagerMockRecorder
- func (mr *MockBasicPeerManagerMockRecorder) AsyncSend(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBasicPeerManagerMockRecorder) CountConnectedPeers() *gomock.Call
- func (mr *MockBasicPeerManagerMockRecorder) Peers() *gomock.Call
- func (mr *MockBasicPeerManagerMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBasicPeerManagerMockRecorder) Start() *gomock.Call
- func (mr *MockBasicPeerManagerMockRecorder) Stop() *gomock.Call
- type MockOrderPeerManager
- func (m *MockOrderPeerManager) AddNode(newNodeID uint64, vpInfo *pb.VpInfo)
- func (m *MockOrderPeerManager) AsyncSend(arg0 peer_mgr.KeyType, arg1 *pb.Message) error
- func (m *MockOrderPeerManager) Broadcast(arg0 *pb.Message) error
- func (m *MockOrderPeerManager) CountConnectedPeers() uint64
- func (m *MockOrderPeerManager) DelNode(delID uint64)
- func (m *MockOrderPeerManager) Disconnect(vpInfos map[uint64]*pb.VpInfo)
- func (m *MockOrderPeerManager) EXPECT() *MockOrderPeerManagerMockRecorder
- func (m *MockOrderPeerManager) OrderPeers() map[uint64]*pb.VpInfo
- func (m *MockOrderPeerManager) OtherPeers() map[uint64]*peer.AddrInfo
- func (m *MockOrderPeerManager) Peers() map[string]*peer.AddrInfo
- func (m *MockOrderPeerManager) Send(arg0 peer_mgr.KeyType, arg1 *pb.Message) (*pb.Message, error)
- func (m *MockOrderPeerManager) Start() error
- func (m *MockOrderPeerManager) Stop() error
- func (m *MockOrderPeerManager) SubscribeOrderMessage(ch chan<- peer_mgr.OrderMessageEvent) event.Subscription
- func (m *MockOrderPeerManager) UpdateRouter(vpInfos map[uint64]*pb.VpInfo, isNew bool) bool
- type MockOrderPeerManagerMockRecorder
- func (mr *MockOrderPeerManagerMockRecorder) AddNode(newNodeID, vpInfo interface{}) *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) AsyncSend(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) Broadcast(arg0 interface{}) *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) CountConnectedPeers() *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) DelNode(delID interface{}) *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) Disconnect(vpInfos interface{}) *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) OrderPeers() *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) OtherPeers() *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) Peers() *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) Start() *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) Stop() *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) SubscribeOrderMessage(ch interface{}) *gomock.Call
- func (mr *MockOrderPeerManagerMockRecorder) UpdateRouter(vpInfos, isNew interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBasicPeerManager ¶
type MockBasicPeerManager struct {
// contains filtered or unexported fields
}
MockBasicPeerManager is a mock of BasicPeerManager interface.
func NewMockBasicPeerManager ¶
func NewMockBasicPeerManager(ctrl *gomock.Controller) *MockBasicPeerManager
NewMockBasicPeerManager creates a new mock instance.
func (*MockBasicPeerManager) CountConnectedPeers ¶
func (m *MockBasicPeerManager) CountConnectedPeers() uint64
CountConnectedPeers mocks base method.
func (*MockBasicPeerManager) EXPECT ¶
func (m *MockBasicPeerManager) EXPECT() *MockBasicPeerManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBasicPeerManager) Peers ¶
func (m *MockBasicPeerManager) Peers() map[string]*peer.AddrInfo
Peers mocks base method.
func (*MockBasicPeerManager) Start ¶
func (m *MockBasicPeerManager) Start() error
Start mocks base method.
func (*MockBasicPeerManager) Stop ¶
func (m *MockBasicPeerManager) Stop() error
Stop mocks base method.
type MockBasicPeerManagerMockRecorder ¶
type MockBasicPeerManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockBasicPeerManagerMockRecorder is the mock recorder for MockBasicPeerManager.
func (*MockBasicPeerManagerMockRecorder) AsyncSend ¶
func (mr *MockBasicPeerManagerMockRecorder) AsyncSend(arg0, arg1 interface{}) *gomock.Call
AsyncSend indicates an expected call of AsyncSend.
func (*MockBasicPeerManagerMockRecorder) CountConnectedPeers ¶
func (mr *MockBasicPeerManagerMockRecorder) CountConnectedPeers() *gomock.Call
CountConnectedPeers indicates an expected call of CountConnectedPeers.
func (*MockBasicPeerManagerMockRecorder) Peers ¶
func (mr *MockBasicPeerManagerMockRecorder) Peers() *gomock.Call
Peers indicates an expected call of Peers.
func (*MockBasicPeerManagerMockRecorder) Send ¶
func (mr *MockBasicPeerManagerMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockBasicPeerManagerMockRecorder) Start ¶
func (mr *MockBasicPeerManagerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockBasicPeerManagerMockRecorder) Stop ¶
func (mr *MockBasicPeerManagerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockOrderPeerManager ¶
type MockOrderPeerManager struct {
// contains filtered or unexported fields
}
MockOrderPeerManager is a mock of OrderPeerManager interface.
func NewMockOrderPeerManager ¶
func NewMockOrderPeerManager(ctrl *gomock.Controller) *MockOrderPeerManager
NewMockOrderPeerManager creates a new mock instance.
func (*MockOrderPeerManager) AddNode ¶
func (m *MockOrderPeerManager) AddNode(newNodeID uint64, vpInfo *pb.VpInfo)
AddNode mocks base method.
func (*MockOrderPeerManager) Broadcast ¶
func (m *MockOrderPeerManager) Broadcast(arg0 *pb.Message) error
Broadcast mocks base method.
func (*MockOrderPeerManager) CountConnectedPeers ¶
func (m *MockOrderPeerManager) CountConnectedPeers() uint64
CountConnectedPeers mocks base method.
func (*MockOrderPeerManager) DelNode ¶
func (m *MockOrderPeerManager) DelNode(delID uint64)
DelNode mocks base method.
func (*MockOrderPeerManager) Disconnect ¶
func (m *MockOrderPeerManager) Disconnect(vpInfos map[uint64]*pb.VpInfo)
Disconnect mocks base method.
func (*MockOrderPeerManager) EXPECT ¶
func (m *MockOrderPeerManager) EXPECT() *MockOrderPeerManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrderPeerManager) OrderPeers ¶
func (m *MockOrderPeerManager) OrderPeers() map[uint64]*pb.VpInfo
OrderPeers mocks base method.
func (*MockOrderPeerManager) OtherPeers ¶
func (m *MockOrderPeerManager) OtherPeers() map[uint64]*peer.AddrInfo
OtherPeers mocks base method.
func (*MockOrderPeerManager) Peers ¶
func (m *MockOrderPeerManager) Peers() map[string]*peer.AddrInfo
Peers mocks base method.
func (*MockOrderPeerManager) Start ¶
func (m *MockOrderPeerManager) Start() error
Start mocks base method.
func (*MockOrderPeerManager) Stop ¶
func (m *MockOrderPeerManager) Stop() error
Stop mocks base method.
func (*MockOrderPeerManager) SubscribeOrderMessage ¶
func (m *MockOrderPeerManager) SubscribeOrderMessage(ch chan<- peer_mgr.OrderMessageEvent) event.Subscription
SubscribeOrderMessage mocks base method.
func (*MockOrderPeerManager) UpdateRouter ¶
UpdateRouter mocks base method.
type MockOrderPeerManagerMockRecorder ¶
type MockOrderPeerManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockOrderPeerManagerMockRecorder is the mock recorder for MockOrderPeerManager.
func (*MockOrderPeerManagerMockRecorder) AddNode ¶
func (mr *MockOrderPeerManagerMockRecorder) AddNode(newNodeID, vpInfo interface{}) *gomock.Call
AddNode indicates an expected call of AddNode.
func (*MockOrderPeerManagerMockRecorder) AsyncSend ¶
func (mr *MockOrderPeerManagerMockRecorder) AsyncSend(arg0, arg1 interface{}) *gomock.Call
AsyncSend indicates an expected call of AsyncSend.
func (*MockOrderPeerManagerMockRecorder) Broadcast ¶
func (mr *MockOrderPeerManagerMockRecorder) Broadcast(arg0 interface{}) *gomock.Call
Broadcast indicates an expected call of Broadcast.
func (*MockOrderPeerManagerMockRecorder) CountConnectedPeers ¶
func (mr *MockOrderPeerManagerMockRecorder) CountConnectedPeers() *gomock.Call
CountConnectedPeers indicates an expected call of CountConnectedPeers.
func (*MockOrderPeerManagerMockRecorder) DelNode ¶
func (mr *MockOrderPeerManagerMockRecorder) DelNode(delID interface{}) *gomock.Call
DelNode indicates an expected call of DelNode.
func (*MockOrderPeerManagerMockRecorder) Disconnect ¶
func (mr *MockOrderPeerManagerMockRecorder) Disconnect(vpInfos interface{}) *gomock.Call
Disconnect indicates an expected call of Disconnect.
func (*MockOrderPeerManagerMockRecorder) OrderPeers ¶
func (mr *MockOrderPeerManagerMockRecorder) OrderPeers() *gomock.Call
OrderPeers indicates an expected call of OrderPeers.
func (*MockOrderPeerManagerMockRecorder) OtherPeers ¶
func (mr *MockOrderPeerManagerMockRecorder) OtherPeers() *gomock.Call
OtherPeers indicates an expected call of OtherPeers.
func (*MockOrderPeerManagerMockRecorder) Peers ¶
func (mr *MockOrderPeerManagerMockRecorder) Peers() *gomock.Call
Peers indicates an expected call of Peers.
func (*MockOrderPeerManagerMockRecorder) Send ¶
func (mr *MockOrderPeerManagerMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockOrderPeerManagerMockRecorder) Start ¶
func (mr *MockOrderPeerManagerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockOrderPeerManagerMockRecorder) Stop ¶
func (mr *MockOrderPeerManagerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockOrderPeerManagerMockRecorder) SubscribeOrderMessage ¶
func (mr *MockOrderPeerManagerMockRecorder) SubscribeOrderMessage(ch interface{}) *gomock.Call
SubscribeOrderMessage indicates an expected call of SubscribeOrderMessage.
func (*MockOrderPeerManagerMockRecorder) UpdateRouter ¶
func (mr *MockOrderPeerManagerMockRecorder) UpdateRouter(vpInfos, isNew interface{}) *gomock.Call
UpdateRouter indicates an expected call of UpdateRouter.