mock_orderPeermgr

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_orderPeermgr is a generated GoMock package.

Index

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

func (m *MockBasicPeerManager) AsyncSend(arg0 peer_mgr.KeyType, arg1 *pb.Message) error

AsyncSend mocks base method.

func (*MockBasicPeerManager) CountConnectedPeers

func (m *MockBasicPeerManager) CountConnectedPeers() uint64

CountConnectedPeers mocks base method.

func (*MockBasicPeerManager) EXPECT

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

func (m *MockBasicPeerManager) Send(arg0 peer_mgr.KeyType, arg1 *pb.Message) (*pb.Message, error)

Send 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

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

Start indicates an expected call of Start.

func (*MockBasicPeerManagerMockRecorder) Stop

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

func (m *MockOrderPeerManager) AsyncSend(arg0 peer_mgr.KeyType, arg1 *pb.Message) error

AsyncSend 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

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

func (m *MockOrderPeerManager) Send(arg0 peer_mgr.KeyType, arg1 *pb.Message) (*pb.Message, error)

Send 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

func (m *MockOrderPeerManager) UpdateRouter(vpInfos map[uint64]*pb.VpInfo, isNew bool) bool

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

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

Start indicates an expected call of Start.

func (*MockOrderPeerManagerMockRecorder) Stop

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.

Jump to

Keyboard shortcuts

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