mock_dispatcher

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_dispatcher is a generated GoMock package.

Index

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 added in v0.4.0

func (m *MockDispatcher) AddSubscriber(arg0 uint32, arg1 dispatcher.Subscriber)

AddSubscriber mocks base method

func (*MockDispatcher) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDispatcher) HandleBroadcast

func (m *MockDispatcher) HandleBroadcast(arg0 uint32, arg1 proto.Message, arg2 chan bool)

HandleBroadcast mocks base method

func (*MockDispatcher) HandleTell

func (m *MockDispatcher) HandleTell(arg0 uint32, arg1 net.Addr, arg2 proto.Message, arg3 chan bool)

HandleTell mocks base method

func (*MockDispatcher) Start

func (m *MockDispatcher) Start(arg0 context.Context) error

Start mocks base method

func (*MockDispatcher) Stop

func (m *MockDispatcher) Stop(arg0 context.Context) error

Stop mocks base method

type MockDispatcherMockRecorder

type MockDispatcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockDispatcherMockRecorder is the mock recorder for MockDispatcher

func (*MockDispatcherMockRecorder) AddSubscriber added in v0.4.0

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 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 v0.4.0

type MockSubscriber struct {
	// contains filtered or unexported fields
}

MockSubscriber is a mock of Subscriber interface

func NewMockSubscriber added in v0.4.0

func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber

NewMockSubscriber creates a new mock instance

func (*MockSubscriber) EXPECT added in v0.4.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSubscriber) HandleAction added in v0.4.0

func (m *MockSubscriber) HandleAction(arg0 *proto0.ActionPb) error

HandleAction mocks base method

func (*MockSubscriber) HandleBlock added in v0.4.0

func (m *MockSubscriber) HandleBlock(arg0 *proto0.BlockPb) error

HandleBlock mocks base method

func (*MockSubscriber) HandleBlockPropose added in v0.4.0

func (m *MockSubscriber) HandleBlockPropose(arg0 *proto0.ProposePb) error

HandleBlockPropose mocks base method

func (*MockSubscriber) HandleBlockSync added in v0.4.0

func (m *MockSubscriber) HandleBlockSync(arg0 *proto0.BlockPb) error

HandleBlockSync mocks base method

func (*MockSubscriber) HandleEndorse added in v0.4.0

func (m *MockSubscriber) HandleEndorse(arg0 *proto0.EndorsePb) error

HandleEndorse mocks base method

func (*MockSubscriber) HandleSyncRequest added in v0.4.0

func (m *MockSubscriber) HandleSyncRequest(arg0 string, arg1 *proto0.BlockSync) error

HandleSyncRequest mocks base method

type MockSubscriberMockRecorder added in v0.4.0

type MockSubscriberMockRecorder struct {
	// contains filtered or unexported fields
}

MockSubscriberMockRecorder is the mock recorder for MockSubscriber

func (*MockSubscriberMockRecorder) HandleAction added in v0.4.0

func (mr *MockSubscriberMockRecorder) HandleAction(arg0 interface{}) *gomock.Call

HandleAction indicates an expected call of HandleAction

func (*MockSubscriberMockRecorder) HandleBlock added in v0.4.0

func (mr *MockSubscriberMockRecorder) HandleBlock(arg0 interface{}) *gomock.Call

HandleBlock indicates an expected call of HandleBlock

func (*MockSubscriberMockRecorder) HandleBlockPropose added in v0.4.0

func (mr *MockSubscriberMockRecorder) HandleBlockPropose(arg0 interface{}) *gomock.Call

HandleBlockPropose indicates an expected call of HandleBlockPropose

func (*MockSubscriberMockRecorder) HandleBlockSync added in v0.4.0

func (mr *MockSubscriberMockRecorder) HandleBlockSync(arg0 interface{}) *gomock.Call

HandleBlockSync indicates an expected call of HandleBlockSync

func (*MockSubscriberMockRecorder) HandleEndorse added in v0.4.0

func (mr *MockSubscriberMockRecorder) HandleEndorse(arg0 interface{}) *gomock.Call

HandleEndorse indicates an expected call of HandleEndorse

func (*MockSubscriberMockRecorder) HandleSyncRequest added in v0.4.0

func (mr *MockSubscriberMockRecorder) HandleSyncRequest(arg0, arg1 interface{}) *gomock.Call

HandleSyncRequest indicates an expected call of HandleSyncRequest

Jump to

Keyboard shortcuts

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