mock_host

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mock_host is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHost

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

MockHost is a mock of Host interface.

func NewMockHost

func NewMockHost(ctrl *gomock.Controller) *MockHost

NewMockHost creates a new mock instance.

func (*MockHost) Addrs

func (m *MockHost) Addrs() []multiaddr.Multiaddr

Addrs mocks base method.

func (*MockHost) Close

func (m *MockHost) Close() error

Close mocks base method.

func (*MockHost) ConnManager

func (m *MockHost) ConnManager() connmgr.ConnManager

ConnManager mocks base method.

func (*MockHost) Connect

func (m *MockHost) Connect(ctx context.Context, pi peer.AddrInfo) error

Connect mocks base method.

func (*MockHost) EXPECT

func (m *MockHost) EXPECT() *MockHostMockRecorder

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

func (*MockHost) EventBus

func (m *MockHost) EventBus() event.Bus

EventBus mocks base method.

func (*MockHost) ID

func (m *MockHost) ID() peer.ID

ID mocks base method.

func (*MockHost) Mux

func (m *MockHost) Mux() protocol.Switch

Mux mocks base method.

func (*MockHost) Network

func (m *MockHost) Network() network.Network

Network mocks base method.

func (*MockHost) NewStream

func (m *MockHost) NewStream(ctx context.Context, p peer.ID, pids ...protocol.ID) (network.Stream, error)

NewStream mocks base method.

func (*MockHost) Peerstore

func (m *MockHost) Peerstore() peerstore.Peerstore

Peerstore mocks base method.

func (*MockHost) RemoveStreamHandler

func (m *MockHost) RemoveStreamHandler(pid protocol.ID)

RemoveStreamHandler mocks base method.

func (*MockHost) SetStreamHandler

func (m *MockHost) SetStreamHandler(pid protocol.ID, handler network.StreamHandler)

SetStreamHandler mocks base method.

func (*MockHost) SetStreamHandlerMatch

func (m *MockHost) SetStreamHandlerMatch(arg0 protocol.ID, arg1 func(protocol.ID) bool, arg2 network.StreamHandler)

SetStreamHandlerMatch mocks base method.

type MockHostMockRecorder

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

MockHostMockRecorder is the mock recorder for MockHost.

func (*MockHostMockRecorder) Addrs

func (mr *MockHostMockRecorder) Addrs() *gomock.Call

Addrs indicates an expected call of Addrs.

func (*MockHostMockRecorder) Close

func (mr *MockHostMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockHostMockRecorder) ConnManager

func (mr *MockHostMockRecorder) ConnManager() *gomock.Call

ConnManager indicates an expected call of ConnManager.

func (*MockHostMockRecorder) Connect

func (mr *MockHostMockRecorder) Connect(ctx, pi any) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockHostMockRecorder) EventBus

func (mr *MockHostMockRecorder) EventBus() *gomock.Call

EventBus indicates an expected call of EventBus.

func (*MockHostMockRecorder) ID

func (mr *MockHostMockRecorder) ID() *gomock.Call

ID indicates an expected call of ID.

func (*MockHostMockRecorder) Mux

func (mr *MockHostMockRecorder) Mux() *gomock.Call

Mux indicates an expected call of Mux.

func (*MockHostMockRecorder) Network

func (mr *MockHostMockRecorder) Network() *gomock.Call

Network indicates an expected call of Network.

func (*MockHostMockRecorder) NewStream

func (mr *MockHostMockRecorder) NewStream(ctx, p any, pids ...any) *gomock.Call

NewStream indicates an expected call of NewStream.

func (*MockHostMockRecorder) Peerstore

func (mr *MockHostMockRecorder) Peerstore() *gomock.Call

Peerstore indicates an expected call of Peerstore.

func (*MockHostMockRecorder) RemoveStreamHandler

func (mr *MockHostMockRecorder) RemoveStreamHandler(pid any) *gomock.Call

RemoveStreamHandler indicates an expected call of RemoveStreamHandler.

func (*MockHostMockRecorder) SetStreamHandler

func (mr *MockHostMockRecorder) SetStreamHandler(pid, handler any) *gomock.Call

SetStreamHandler indicates an expected call of SetStreamHandler.

func (*MockHostMockRecorder) SetStreamHandlerMatch

func (mr *MockHostMockRecorder) SetStreamHandlerMatch(arg0, arg1, arg2 any) *gomock.Call

SetStreamHandlerMatch indicates an expected call of SetStreamHandlerMatch.

Jump to

Keyboard shortcuts

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