mocknetwork

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocknetwork is a generated GoMock package.

Package mocknetwork is a generated GoMock package.

Package mocknetwork is a generated GoMock package.

Package mocknetwork is a generated GoMock package.

Package mocknetwork is a generated GoMock package.

Package mocknetwork is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnManagementScope

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

MockConnManagementScope is a mock of ConnManagementScope interface.

func NewMockConnManagementScope

func NewMockConnManagementScope(ctrl *gomock.Controller) *MockConnManagementScope

NewMockConnManagementScope creates a new mock instance.

func (*MockConnManagementScope) BeginSpan

BeginSpan mocks base method.

func (*MockConnManagementScope) Done

func (m *MockConnManagementScope) Done()

Done mocks base method.

func (*MockConnManagementScope) EXPECT

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

func (*MockConnManagementScope) PeerScope

func (m *MockConnManagementScope) PeerScope() network.PeerScope

PeerScope mocks base method.

func (*MockConnManagementScope) ReleaseMemory

func (m *MockConnManagementScope) ReleaseMemory(arg0 int)

ReleaseMemory mocks base method.

func (*MockConnManagementScope) ReserveMemory

func (m *MockConnManagementScope) ReserveMemory(arg0 int, arg1 byte) error

ReserveMemory mocks base method.

func (*MockConnManagementScope) SetPeer

func (m *MockConnManagementScope) SetPeer(arg0 peer.ID) error

SetPeer mocks base method.

func (*MockConnManagementScope) Stat

Stat mocks base method.

type MockConnManagementScopeMockRecorder

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

MockConnManagementScopeMockRecorder is the mock recorder for MockConnManagementScope.

func (*MockConnManagementScopeMockRecorder) BeginSpan

BeginSpan indicates an expected call of BeginSpan.

func (*MockConnManagementScopeMockRecorder) Done

Done indicates an expected call of Done.

func (*MockConnManagementScopeMockRecorder) PeerScope

PeerScope indicates an expected call of PeerScope.

func (*MockConnManagementScopeMockRecorder) ReleaseMemory

func (mr *MockConnManagementScopeMockRecorder) ReleaseMemory(arg0 interface{}) *gomock.Call

ReleaseMemory indicates an expected call of ReleaseMemory.

func (*MockConnManagementScopeMockRecorder) ReserveMemory

func (mr *MockConnManagementScopeMockRecorder) ReserveMemory(arg0, arg1 interface{}) *gomock.Call

ReserveMemory indicates an expected call of ReserveMemory.

func (*MockConnManagementScopeMockRecorder) SetPeer

func (mr *MockConnManagementScopeMockRecorder) SetPeer(arg0 interface{}) *gomock.Call

SetPeer indicates an expected call of SetPeer.

func (*MockConnManagementScopeMockRecorder) Stat

Stat indicates an expected call of Stat.

type MockPeerScope

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

MockPeerScope is a mock of PeerScope interface.

func NewMockPeerScope

func NewMockPeerScope(ctrl *gomock.Controller) *MockPeerScope

NewMockPeerScope creates a new mock instance.

func (*MockPeerScope) BeginSpan

func (m *MockPeerScope) BeginSpan() (network.ResourceScopeSpan, error)

BeginSpan mocks base method.

func (*MockPeerScope) EXPECT

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

func (*MockPeerScope) Peer

func (m *MockPeerScope) Peer() peer.ID

Peer mocks base method.

func (*MockPeerScope) ReleaseMemory

func (m *MockPeerScope) ReleaseMemory(arg0 int)

ReleaseMemory mocks base method.

func (*MockPeerScope) ReserveMemory

func (m *MockPeerScope) ReserveMemory(arg0 int, arg1 byte) error

ReserveMemory mocks base method.

func (*MockPeerScope) Stat

func (m *MockPeerScope) Stat() network.ScopeStat

Stat mocks base method.

type MockPeerScopeMockRecorder

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

MockPeerScopeMockRecorder is the mock recorder for MockPeerScope.

func (*MockPeerScopeMockRecorder) BeginSpan

func (mr *MockPeerScopeMockRecorder) BeginSpan() *gomock.Call

BeginSpan indicates an expected call of BeginSpan.

func (*MockPeerScopeMockRecorder) Peer

Peer indicates an expected call of Peer.

func (*MockPeerScopeMockRecorder) ReleaseMemory

func (mr *MockPeerScopeMockRecorder) ReleaseMemory(arg0 interface{}) *gomock.Call

ReleaseMemory indicates an expected call of ReleaseMemory.

func (*MockPeerScopeMockRecorder) ReserveMemory

func (mr *MockPeerScopeMockRecorder) ReserveMemory(arg0, arg1 interface{}) *gomock.Call

ReserveMemory indicates an expected call of ReserveMemory.

func (*MockPeerScopeMockRecorder) Stat

Stat indicates an expected call of Stat.

type MockProtocolScope

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

MockProtocolScope is a mock of ProtocolScope interface.

func NewMockProtocolScope

func NewMockProtocolScope(ctrl *gomock.Controller) *MockProtocolScope

NewMockProtocolScope creates a new mock instance.

func (*MockProtocolScope) BeginSpan

BeginSpan mocks base method.

func (*MockProtocolScope) EXPECT

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

func (*MockProtocolScope) Protocol

func (m *MockProtocolScope) Protocol() protocol.ID

Protocol mocks base method.

func (*MockProtocolScope) ReleaseMemory

func (m *MockProtocolScope) ReleaseMemory(arg0 int)

ReleaseMemory mocks base method.

func (*MockProtocolScope) ReserveMemory

func (m *MockProtocolScope) ReserveMemory(arg0 int, arg1 byte) error

ReserveMemory mocks base method.

func (*MockProtocolScope) Stat

Stat mocks base method.

type MockProtocolScopeMockRecorder

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

MockProtocolScopeMockRecorder is the mock recorder for MockProtocolScope.

func (*MockProtocolScopeMockRecorder) BeginSpan

func (mr *MockProtocolScopeMockRecorder) BeginSpan() *gomock.Call

BeginSpan indicates an expected call of BeginSpan.

func (*MockProtocolScopeMockRecorder) Protocol

func (mr *MockProtocolScopeMockRecorder) Protocol() *gomock.Call

Protocol indicates an expected call of Protocol.

func (*MockProtocolScopeMockRecorder) ReleaseMemory

func (mr *MockProtocolScopeMockRecorder) ReleaseMemory(arg0 interface{}) *gomock.Call

ReleaseMemory indicates an expected call of ReleaseMemory.

func (*MockProtocolScopeMockRecorder) ReserveMemory

func (mr *MockProtocolScopeMockRecorder) ReserveMemory(arg0, arg1 interface{}) *gomock.Call

ReserveMemory indicates an expected call of ReserveMemory.

func (*MockProtocolScopeMockRecorder) Stat

Stat indicates an expected call of Stat.

type MockResourceManager

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

MockResourceManager is a mock of ResourceManager interface.

func NewMockResourceManager

func NewMockResourceManager(ctrl *gomock.Controller) *MockResourceManager

NewMockResourceManager creates a new mock instance.

func (*MockResourceManager) Close

func (m *MockResourceManager) Close() error

Close mocks base method.

func (*MockResourceManager) EXPECT

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

func (*MockResourceManager) OpenConnection

OpenConnection mocks base method.

func (*MockResourceManager) OpenStream

OpenStream mocks base method.

func (*MockResourceManager) ViewPeer

func (m *MockResourceManager) ViewPeer(arg0 peer.ID, arg1 func(network.PeerScope) error) error

ViewPeer mocks base method.

func (*MockResourceManager) ViewProtocol

func (m *MockResourceManager) ViewProtocol(arg0 protocol.ID, arg1 func(network.ProtocolScope) error) error

ViewProtocol mocks base method.

func (*MockResourceManager) ViewService

func (m *MockResourceManager) ViewService(arg0 string, arg1 func(network.ServiceScope) error) error

ViewService mocks base method.

func (*MockResourceManager) ViewSystem

func (m *MockResourceManager) ViewSystem(arg0 func(network.ResourceScope) error) error

ViewSystem mocks base method.

func (*MockResourceManager) ViewTransient

func (m *MockResourceManager) ViewTransient(arg0 func(network.ResourceScope) error) error

ViewTransient mocks base method.

type MockResourceManagerMockRecorder

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

MockResourceManagerMockRecorder is the mock recorder for MockResourceManager.

func (*MockResourceManagerMockRecorder) Close

Close indicates an expected call of Close.

func (*MockResourceManagerMockRecorder) OpenConnection

func (mr *MockResourceManagerMockRecorder) OpenConnection(arg0, arg1, arg2 interface{}) *gomock.Call

OpenConnection indicates an expected call of OpenConnection.

func (*MockResourceManagerMockRecorder) OpenStream

func (mr *MockResourceManagerMockRecorder) OpenStream(arg0, arg1 interface{}) *gomock.Call

OpenStream indicates an expected call of OpenStream.

func (*MockResourceManagerMockRecorder) ViewPeer

func (mr *MockResourceManagerMockRecorder) ViewPeer(arg0, arg1 interface{}) *gomock.Call

ViewPeer indicates an expected call of ViewPeer.

func (*MockResourceManagerMockRecorder) ViewProtocol

func (mr *MockResourceManagerMockRecorder) ViewProtocol(arg0, arg1 interface{}) *gomock.Call

ViewProtocol indicates an expected call of ViewProtocol.

func (*MockResourceManagerMockRecorder) ViewService

func (mr *MockResourceManagerMockRecorder) ViewService(arg0, arg1 interface{}) *gomock.Call

ViewService indicates an expected call of ViewService.

func (*MockResourceManagerMockRecorder) ViewSystem

func (mr *MockResourceManagerMockRecorder) ViewSystem(arg0 interface{}) *gomock.Call

ViewSystem indicates an expected call of ViewSystem.

func (*MockResourceManagerMockRecorder) ViewTransient

func (mr *MockResourceManagerMockRecorder) ViewTransient(arg0 interface{}) *gomock.Call

ViewTransient indicates an expected call of ViewTransient.

type MockResourceScopeSpan

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

MockResourceScopeSpan is a mock of ResourceScopeSpan interface.

func NewMockResourceScopeSpan

func NewMockResourceScopeSpan(ctrl *gomock.Controller) *MockResourceScopeSpan

NewMockResourceScopeSpan creates a new mock instance.

func (*MockResourceScopeSpan) BeginSpan

BeginSpan mocks base method.

func (*MockResourceScopeSpan) Done

func (m *MockResourceScopeSpan) Done()

Done mocks base method.

func (*MockResourceScopeSpan) EXPECT

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

func (*MockResourceScopeSpan) ReleaseMemory

func (m *MockResourceScopeSpan) ReleaseMemory(arg0 int)

ReleaseMemory mocks base method.

func (*MockResourceScopeSpan) ReserveMemory

func (m *MockResourceScopeSpan) ReserveMemory(arg0 int, arg1 byte) error

ReserveMemory mocks base method.

func (*MockResourceScopeSpan) Stat

Stat mocks base method.

type MockResourceScopeSpanMockRecorder

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

MockResourceScopeSpanMockRecorder is the mock recorder for MockResourceScopeSpan.

func (*MockResourceScopeSpanMockRecorder) BeginSpan

BeginSpan indicates an expected call of BeginSpan.

func (*MockResourceScopeSpanMockRecorder) Done

Done indicates an expected call of Done.

func (*MockResourceScopeSpanMockRecorder) ReleaseMemory

func (mr *MockResourceScopeSpanMockRecorder) ReleaseMemory(arg0 interface{}) *gomock.Call

ReleaseMemory indicates an expected call of ReleaseMemory.

func (*MockResourceScopeSpanMockRecorder) ReserveMemory

func (mr *MockResourceScopeSpanMockRecorder) ReserveMemory(arg0, arg1 interface{}) *gomock.Call

ReserveMemory indicates an expected call of ReserveMemory.

func (*MockResourceScopeSpanMockRecorder) Stat

Stat indicates an expected call of Stat.

type MockStreamManagementScope

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

MockStreamManagementScope is a mock of StreamManagementScope interface.

func NewMockStreamManagementScope

func NewMockStreamManagementScope(ctrl *gomock.Controller) *MockStreamManagementScope

NewMockStreamManagementScope creates a new mock instance.

func (*MockStreamManagementScope) BeginSpan

BeginSpan mocks base method.

func (*MockStreamManagementScope) Done

func (m *MockStreamManagementScope) Done()

Done mocks base method.

func (*MockStreamManagementScope) EXPECT

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

func (*MockStreamManagementScope) PeerScope

PeerScope mocks base method.

func (*MockStreamManagementScope) ProtocolScope

func (m *MockStreamManagementScope) ProtocolScope() network.ProtocolScope

ProtocolScope mocks base method.

func (*MockStreamManagementScope) ReleaseMemory

func (m *MockStreamManagementScope) ReleaseMemory(arg0 int)

ReleaseMemory mocks base method.

func (*MockStreamManagementScope) ReserveMemory

func (m *MockStreamManagementScope) ReserveMemory(arg0 int, arg1 byte) error

ReserveMemory mocks base method.

func (*MockStreamManagementScope) ServiceScope

ServiceScope mocks base method.

func (*MockStreamManagementScope) SetProtocol

func (m *MockStreamManagementScope) SetProtocol(arg0 protocol.ID) error

SetProtocol mocks base method.

func (*MockStreamManagementScope) SetService

func (m *MockStreamManagementScope) SetService(arg0 string) error

SetService mocks base method.

func (*MockStreamManagementScope) Stat

Stat mocks base method.

type MockStreamManagementScopeMockRecorder

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

MockStreamManagementScopeMockRecorder is the mock recorder for MockStreamManagementScope.

func (*MockStreamManagementScopeMockRecorder) BeginSpan

BeginSpan indicates an expected call of BeginSpan.

func (*MockStreamManagementScopeMockRecorder) Done

Done indicates an expected call of Done.

func (*MockStreamManagementScopeMockRecorder) PeerScope

PeerScope indicates an expected call of PeerScope.

func (*MockStreamManagementScopeMockRecorder) ProtocolScope

func (mr *MockStreamManagementScopeMockRecorder) ProtocolScope() *gomock.Call

ProtocolScope indicates an expected call of ProtocolScope.

func (*MockStreamManagementScopeMockRecorder) ReleaseMemory

func (mr *MockStreamManagementScopeMockRecorder) ReleaseMemory(arg0 interface{}) *gomock.Call

ReleaseMemory indicates an expected call of ReleaseMemory.

func (*MockStreamManagementScopeMockRecorder) ReserveMemory

func (mr *MockStreamManagementScopeMockRecorder) ReserveMemory(arg0, arg1 interface{}) *gomock.Call

ReserveMemory indicates an expected call of ReserveMemory.

func (*MockStreamManagementScopeMockRecorder) ServiceScope

ServiceScope indicates an expected call of ServiceScope.

func (*MockStreamManagementScopeMockRecorder) SetProtocol

func (mr *MockStreamManagementScopeMockRecorder) SetProtocol(arg0 interface{}) *gomock.Call

SetProtocol indicates an expected call of SetProtocol.

func (*MockStreamManagementScopeMockRecorder) SetService

func (mr *MockStreamManagementScopeMockRecorder) SetService(arg0 interface{}) *gomock.Call

SetService indicates an expected call of SetService.

func (*MockStreamManagementScopeMockRecorder) Stat

Stat indicates an expected call of Stat.

Jump to

Keyboard shortcuts

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