mockprotocol

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mockprotocol is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHandler

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

MockHandler is a mock of Handler interface

func NewMockHandler

func NewMockHandler(ctrl *gomock.Controller) *MockHandler

NewMockHandler creates a new mock instance

func (*MockHandler) Accept

func (m *MockHandler) Accept(arg0 context.Context, arg1 go_libp2p_peer.ID) error

Accept mocks base method

func (*MockHandler) AddNode

func (m *MockHandler) AddNode(arg0 context.Context, arg1 go_libp2p_peer.ID, arg2 go_multiaddr.Multiaddr, arg3 []byte) error

AddNode mocks base method

func (*MockHandler) Close

func (m *MockHandler) Close(arg0 context.Context)

Close mocks base method

func (*MockHandler) CompleteBootstrap

func (m *MockHandler) CompleteBootstrap(arg0 context.Context) error

CompleteBootstrap mocks base method

func (*MockHandler) EXPECT

func (m *MockHandler) EXPECT() *MockHandlerMockRecorder

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

func (*MockHandler) Handshake

func (m *MockHandler) Handshake(arg0 context.Context) error

Handshake mocks base method

func (*MockHandler) Reject

func (m *MockHandler) Reject(arg0 context.Context, arg1 go_libp2p_peer.ID) error

Reject mocks base method

func (*MockHandler) RemoveNode

func (m *MockHandler) RemoveNode(arg0 context.Context, arg1 go_libp2p_peer.ID) error

RemoveNode mocks base method

type MockHandlerMockRecorder

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

MockHandlerMockRecorder is the mock recorder for MockHandler

func (*MockHandlerMockRecorder) Accept

func (mr *MockHandlerMockRecorder) Accept(arg0, arg1 interface{}) *gomock.Call

Accept indicates an expected call of Accept

func (*MockHandlerMockRecorder) AddNode

func (mr *MockHandlerMockRecorder) AddNode(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

AddNode indicates an expected call of AddNode

func (*MockHandlerMockRecorder) Close

func (mr *MockHandlerMockRecorder) Close(arg0 interface{}) *gomock.Call

Close indicates an expected call of Close

func (*MockHandlerMockRecorder) CompleteBootstrap

func (mr *MockHandlerMockRecorder) CompleteBootstrap(arg0 interface{}) *gomock.Call

CompleteBootstrap indicates an expected call of CompleteBootstrap

func (*MockHandlerMockRecorder) Handshake

func (mr *MockHandlerMockRecorder) Handshake(arg0 interface{}) *gomock.Call

Handshake indicates an expected call of Handshake

func (*MockHandlerMockRecorder) Reject

func (mr *MockHandlerMockRecorder) Reject(arg0, arg1 interface{}) *gomock.Call

Reject indicates an expected call of Reject

func (*MockHandlerMockRecorder) RemoveNode

func (mr *MockHandlerMockRecorder) RemoveNode(arg0, arg1 interface{}) *gomock.Call

RemoveNode indicates an expected call of RemoveNode

Jump to

Keyboard shortcuts

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