Versions in this module Expand all Collapse all v0 v0.23.5 Nov 8, 2022 Changes in this version + type MockConnManagementScope struct + func NewMockConnManagementScope(ctrl *gomock.Controller) *MockConnManagementScope + func (m *MockConnManagementScope) BeginSpan() (network.ResourceScopeSpan, error) + func (m *MockConnManagementScope) Done() + func (m *MockConnManagementScope) EXPECT() *MockConnManagementScopeMockRecorder + func (m *MockConnManagementScope) PeerScope() network.PeerScope + func (m *MockConnManagementScope) ReleaseMemory(arg0 int) + func (m *MockConnManagementScope) ReserveMemory(arg0 int, arg1 byte) error + func (m *MockConnManagementScope) SetPeer(arg0 peer.ID) error + func (m *MockConnManagementScope) Stat() network.ScopeStat + type MockConnManagementScopeMockRecorder struct + func (mr *MockConnManagementScopeMockRecorder) BeginSpan() *gomock.Call + func (mr *MockConnManagementScopeMockRecorder) Done() *gomock.Call + func (mr *MockConnManagementScopeMockRecorder) PeerScope() *gomock.Call + func (mr *MockConnManagementScopeMockRecorder) ReleaseMemory(arg0 interface{}) *gomock.Call + func (mr *MockConnManagementScopeMockRecorder) ReserveMemory(arg0, arg1 interface{}) *gomock.Call + func (mr *MockConnManagementScopeMockRecorder) SetPeer(arg0 interface{}) *gomock.Call + func (mr *MockConnManagementScopeMockRecorder) Stat() *gomock.Call + type MockPeerScope struct + func NewMockPeerScope(ctrl *gomock.Controller) *MockPeerScope + func (m *MockPeerScope) BeginSpan() (network.ResourceScopeSpan, error) + func (m *MockPeerScope) EXPECT() *MockPeerScopeMockRecorder + func (m *MockPeerScope) Peer() peer.ID + func (m *MockPeerScope) ReleaseMemory(arg0 int) + func (m *MockPeerScope) ReserveMemory(arg0 int, arg1 byte) error + func (m *MockPeerScope) Stat() network.ScopeStat + type MockPeerScopeMockRecorder struct + func (mr *MockPeerScopeMockRecorder) BeginSpan() *gomock.Call + func (mr *MockPeerScopeMockRecorder) Peer() *gomock.Call + func (mr *MockPeerScopeMockRecorder) ReleaseMemory(arg0 interface{}) *gomock.Call + func (mr *MockPeerScopeMockRecorder) ReserveMemory(arg0, arg1 interface{}) *gomock.Call + func (mr *MockPeerScopeMockRecorder) Stat() *gomock.Call + type MockProtocolScope struct + func NewMockProtocolScope(ctrl *gomock.Controller) *MockProtocolScope + func (m *MockProtocolScope) BeginSpan() (network.ResourceScopeSpan, error) + func (m *MockProtocolScope) EXPECT() *MockProtocolScopeMockRecorder + func (m *MockProtocolScope) Protocol() protocol.ID + func (m *MockProtocolScope) ReleaseMemory(arg0 int) + func (m *MockProtocolScope) ReserveMemory(arg0 int, arg1 byte) error + func (m *MockProtocolScope) Stat() network.ScopeStat + type MockProtocolScopeMockRecorder struct + func (mr *MockProtocolScopeMockRecorder) BeginSpan() *gomock.Call + func (mr *MockProtocolScopeMockRecorder) Protocol() *gomock.Call + func (mr *MockProtocolScopeMockRecorder) ReleaseMemory(arg0 interface{}) *gomock.Call + func (mr *MockProtocolScopeMockRecorder) ReserveMemory(arg0, arg1 interface{}) *gomock.Call + func (mr *MockProtocolScopeMockRecorder) Stat() *gomock.Call + type MockResourceManager struct + func NewMockResourceManager(ctrl *gomock.Controller) *MockResourceManager + func (m *MockResourceManager) Close() error + func (m *MockResourceManager) EXPECT() *MockResourceManagerMockRecorder + func (m *MockResourceManager) OpenConnection(arg0 network.Direction, arg1 bool, arg2 multiaddr.Multiaddr) (network.ConnManagementScope, error) + func (m *MockResourceManager) OpenStream(arg0 peer.ID, arg1 network.Direction) (network.StreamManagementScope, error) + func (m *MockResourceManager) ViewPeer(arg0 peer.ID, arg1 func(network.PeerScope) error) error + func (m *MockResourceManager) ViewProtocol(arg0 protocol.ID, arg1 func(network.ProtocolScope) error) error + func (m *MockResourceManager) ViewService(arg0 string, arg1 func(network.ServiceScope) error) error + func (m *MockResourceManager) ViewSystem(arg0 func(network.ResourceScope) error) error + func (m *MockResourceManager) ViewTransient(arg0 func(network.ResourceScope) error) error + type MockResourceManagerMockRecorder struct + func (mr *MockResourceManagerMockRecorder) Close() *gomock.Call + func (mr *MockResourceManagerMockRecorder) OpenConnection(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockResourceManagerMockRecorder) OpenStream(arg0, arg1 interface{}) *gomock.Call + func (mr *MockResourceManagerMockRecorder) ViewPeer(arg0, arg1 interface{}) *gomock.Call + func (mr *MockResourceManagerMockRecorder) ViewProtocol(arg0, arg1 interface{}) *gomock.Call + func (mr *MockResourceManagerMockRecorder) ViewService(arg0, arg1 interface{}) *gomock.Call + func (mr *MockResourceManagerMockRecorder) ViewSystem(arg0 interface{}) *gomock.Call + func (mr *MockResourceManagerMockRecorder) ViewTransient(arg0 interface{}) *gomock.Call + type MockStreamManagementScope struct + func NewMockStreamManagementScope(ctrl *gomock.Controller) *MockStreamManagementScope + func (m *MockStreamManagementScope) BeginSpan() (network.ResourceScopeSpan, error) + func (m *MockStreamManagementScope) Done() + func (m *MockStreamManagementScope) EXPECT() *MockStreamManagementScopeMockRecorder + func (m *MockStreamManagementScope) PeerScope() network.PeerScope + func (m *MockStreamManagementScope) ProtocolScope() network.ProtocolScope + func (m *MockStreamManagementScope) ReleaseMemory(arg0 int) + func (m *MockStreamManagementScope) ReserveMemory(arg0 int, arg1 byte) error + func (m *MockStreamManagementScope) ServiceScope() network.ServiceScope + func (m *MockStreamManagementScope) SetProtocol(arg0 protocol.ID) error + func (m *MockStreamManagementScope) SetService(arg0 string) error + func (m *MockStreamManagementScope) Stat() network.ScopeStat + type MockStreamManagementScopeMockRecorder struct + func (mr *MockStreamManagementScopeMockRecorder) BeginSpan() *gomock.Call + func (mr *MockStreamManagementScopeMockRecorder) Done() *gomock.Call + func (mr *MockStreamManagementScopeMockRecorder) PeerScope() *gomock.Call + func (mr *MockStreamManagementScopeMockRecorder) ProtocolScope() *gomock.Call + func (mr *MockStreamManagementScopeMockRecorder) ReleaseMemory(arg0 interface{}) *gomock.Call + func (mr *MockStreamManagementScopeMockRecorder) ReserveMemory(arg0, arg1 interface{}) *gomock.Call + func (mr *MockStreamManagementScopeMockRecorder) ServiceScope() *gomock.Call + func (mr *MockStreamManagementScopeMockRecorder) SetProtocol(arg0 interface{}) *gomock.Call + func (mr *MockStreamManagementScopeMockRecorder) SetService(arg0 interface{}) *gomock.Call + func (mr *MockStreamManagementScopeMockRecorder) Stat() *gomock.Call