p2p_mock

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package p2p_mock is a generated GoMock package.

Index

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

func (m *MockService) ID() string

ID 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

func (*MockService) Start

func (m *MockService) Start() error

Start mocks base method

func (*MockService) Stop

func (m *MockService) Stop()

Stop 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

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

Jump to

Keyboard shortcuts

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