Documentation ¶
Overview ¶
Package mock_dispatcher is a generated GoMock package.
Index ¶
- type MockDispatcher
- func (m *MockDispatcher) AddSubscriber(arg0 uint32, arg1 dispatcher.Subscriber)
- func (m *MockDispatcher) EXPECT() *MockDispatcherMockRecorder
- func (m *MockDispatcher) HandleBroadcast(arg0 context.Context, arg1 uint32, arg2 string, arg3 proto.Message)
- func (m *MockDispatcher) HandleTell(arg0 context.Context, arg1 uint32, arg2 peer.AddrInfo, arg3 proto.Message)
- func (m *MockDispatcher) Start(arg0 context.Context) error
- func (m *MockDispatcher) Stop(arg0 context.Context) error
- type MockDispatcherMockRecorder
- func (mr *MockDispatcherMockRecorder) AddSubscriber(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDispatcherMockRecorder) HandleBroadcast(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDispatcherMockRecorder) HandleTell(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDispatcherMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockDispatcherMockRecorder) Stop(arg0 interface{}) *gomock.Call
- type MockSubscriber
- func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder
- func (m *MockSubscriber) HandleAction(arg0 context.Context, arg1 *iotextypes.Action) error
- func (m *MockSubscriber) HandleBlock(arg0 context.Context, arg1 string, arg2 *iotextypes.Block) error
- func (m *MockSubscriber) HandleConsensusMsg(arg0 *iotextypes.ConsensusMessage) error
- func (m *MockSubscriber) HandleNodeInfo(arg0 context.Context, arg1 string, arg2 *iotextypes.NodeInfo) error
- func (m *MockSubscriber) HandleNodeInfoRequest(arg0 context.Context, arg1 peer.AddrInfo, arg2 *iotextypes.NodeInfoRequest) error
- func (m *MockSubscriber) HandleSyncRequest(arg0 context.Context, arg1 peer.AddrInfo, arg2 *iotexrpc.BlockSync) error
- func (m *MockSubscriber) ReportFullness(arg0 context.Context, arg1 iotexrpc.MessageType, arg2 float32)
- type MockSubscriberMockRecorder
- func (mr *MockSubscriberMockRecorder) HandleAction(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSubscriberMockRecorder) HandleBlock(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSubscriberMockRecorder) HandleConsensusMsg(arg0 interface{}) *gomock.Call
- func (mr *MockSubscriberMockRecorder) HandleNodeInfo(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSubscriberMockRecorder) HandleNodeInfoRequest(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSubscriberMockRecorder) HandleSyncRequest(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSubscriberMockRecorder) ReportFullness(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDispatcher ¶
type MockDispatcher struct {
// contains filtered or unexported fields
}
MockDispatcher is a mock of Dispatcher interface.
func NewMockDispatcher ¶
func NewMockDispatcher(ctrl *gomock.Controller) *MockDispatcher
NewMockDispatcher creates a new mock instance.
func (*MockDispatcher) AddSubscriber ¶
func (m *MockDispatcher) AddSubscriber(arg0 uint32, arg1 dispatcher.Subscriber)
AddSubscriber mocks base method.
func (*MockDispatcher) EXPECT ¶
func (m *MockDispatcher) EXPECT() *MockDispatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDispatcher) HandleBroadcast ¶
func (m *MockDispatcher) HandleBroadcast(arg0 context.Context, arg1 uint32, arg2 string, arg3 proto.Message)
HandleBroadcast mocks base method.
func (*MockDispatcher) HandleTell ¶
func (m *MockDispatcher) HandleTell(arg0 context.Context, arg1 uint32, arg2 peer.AddrInfo, arg3 proto.Message)
HandleTell mocks base method.
type MockDispatcherMockRecorder ¶
type MockDispatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockDispatcherMockRecorder is the mock recorder for MockDispatcher.
func (*MockDispatcherMockRecorder) AddSubscriber ¶
func (mr *MockDispatcherMockRecorder) AddSubscriber(arg0, arg1 interface{}) *gomock.Call
AddSubscriber indicates an expected call of AddSubscriber.
func (*MockDispatcherMockRecorder) HandleBroadcast ¶
func (mr *MockDispatcherMockRecorder) HandleBroadcast(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
HandleBroadcast indicates an expected call of HandleBroadcast.
func (*MockDispatcherMockRecorder) HandleTell ¶
func (mr *MockDispatcherMockRecorder) HandleTell(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
HandleTell indicates an expected call of HandleTell.
func (*MockDispatcherMockRecorder) Start ¶
func (mr *MockDispatcherMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockDispatcherMockRecorder) Stop ¶
func (mr *MockDispatcherMockRecorder) Stop(arg0 interface{}) *gomock.Call
Stop indicates an expected call of Stop.
type MockSubscriber ¶ added in v2.0.6
type MockSubscriber struct {
// contains filtered or unexported fields
}
MockSubscriber is a mock of Subscriber interface.
func NewMockSubscriber ¶ added in v2.0.6
func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber
NewMockSubscriber creates a new mock instance.
func (*MockSubscriber) EXPECT ¶ added in v2.0.6
func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubscriber) HandleAction ¶ added in v2.0.6
func (m *MockSubscriber) HandleAction(arg0 context.Context, arg1 *iotextypes.Action) error
HandleAction mocks base method.
func (*MockSubscriber) HandleBlock ¶ added in v2.0.6
func (m *MockSubscriber) HandleBlock(arg0 context.Context, arg1 string, arg2 *iotextypes.Block) error
HandleBlock mocks base method.
func (*MockSubscriber) HandleConsensusMsg ¶ added in v2.0.6
func (m *MockSubscriber) HandleConsensusMsg(arg0 *iotextypes.ConsensusMessage) error
HandleConsensusMsg mocks base method.
func (*MockSubscriber) HandleNodeInfo ¶ added in v2.0.6
func (m *MockSubscriber) HandleNodeInfo(arg0 context.Context, arg1 string, arg2 *iotextypes.NodeInfo) error
HandleNodeInfo mocks base method.
func (*MockSubscriber) HandleNodeInfoRequest ¶ added in v2.0.6
func (m *MockSubscriber) HandleNodeInfoRequest(arg0 context.Context, arg1 peer.AddrInfo, arg2 *iotextypes.NodeInfoRequest) error
HandleNodeInfoRequest mocks base method.
func (*MockSubscriber) HandleSyncRequest ¶ added in v2.0.6
func (m *MockSubscriber) HandleSyncRequest(arg0 context.Context, arg1 peer.AddrInfo, arg2 *iotexrpc.BlockSync) error
HandleSyncRequest mocks base method.
func (*MockSubscriber) ReportFullness ¶ added in v2.0.6
func (m *MockSubscriber) ReportFullness(arg0 context.Context, arg1 iotexrpc.MessageType, arg2 float32)
ReportFullness mocks base method.
type MockSubscriberMockRecorder ¶ added in v2.0.6
type MockSubscriberMockRecorder struct {
// contains filtered or unexported fields
}
MockSubscriberMockRecorder is the mock recorder for MockSubscriber.
func (*MockSubscriberMockRecorder) HandleAction ¶ added in v2.0.6
func (mr *MockSubscriberMockRecorder) HandleAction(arg0, arg1 interface{}) *gomock.Call
HandleAction indicates an expected call of HandleAction.
func (*MockSubscriberMockRecorder) HandleBlock ¶ added in v2.0.6
func (mr *MockSubscriberMockRecorder) HandleBlock(arg0, arg1, arg2 interface{}) *gomock.Call
HandleBlock indicates an expected call of HandleBlock.
func (*MockSubscriberMockRecorder) HandleConsensusMsg ¶ added in v2.0.6
func (mr *MockSubscriberMockRecorder) HandleConsensusMsg(arg0 interface{}) *gomock.Call
HandleConsensusMsg indicates an expected call of HandleConsensusMsg.
func (*MockSubscriberMockRecorder) HandleNodeInfo ¶ added in v2.0.6
func (mr *MockSubscriberMockRecorder) HandleNodeInfo(arg0, arg1, arg2 interface{}) *gomock.Call
HandleNodeInfo indicates an expected call of HandleNodeInfo.
func (*MockSubscriberMockRecorder) HandleNodeInfoRequest ¶ added in v2.0.6
func (mr *MockSubscriberMockRecorder) HandleNodeInfoRequest(arg0, arg1, arg2 interface{}) *gomock.Call
HandleNodeInfoRequest indicates an expected call of HandleNodeInfoRequest.
func (*MockSubscriberMockRecorder) HandleSyncRequest ¶ added in v2.0.6
func (mr *MockSubscriberMockRecorder) HandleSyncRequest(arg0, arg1, arg2 interface{}) *gomock.Call
HandleSyncRequest indicates an expected call of HandleSyncRequest.
func (*MockSubscriberMockRecorder) ReportFullness ¶ added in v2.0.6
func (mr *MockSubscriberMockRecorder) ReportFullness(arg0, arg1, arg2 interface{}) *gomock.Call
ReportFullness indicates an expected call of ReportFullness.