Documentation ¶
Overview ¶
Package network is a generated GoMock package.
Package network is a generated GoMock package.
Package network is a generated GoMock package.
Package network is a generated GoMock package.
Package network is a generated GoMock package.
Index ¶
- type 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
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 ¶
func (m *MockConnManagementScope) BeginSpan() (network.ResourceScopeSpan, error)
BeginSpan mocks base method.
func (*MockConnManagementScope) Done ¶
func (m *MockConnManagementScope) Done()
Done mocks base method.
func (*MockConnManagementScope) EXPECT ¶
func (m *MockConnManagementScope) EXPECT() *MockConnManagementScopeMockRecorder
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 ¶
func (m *MockConnManagementScope) Stat() network.ScopeStat
Stat mocks base method.
type MockConnManagementScopeMockRecorder ¶
type MockConnManagementScopeMockRecorder struct {
// contains filtered or unexported fields
}
MockConnManagementScopeMockRecorder is the mock recorder for MockConnManagementScope.
func (*MockConnManagementScopeMockRecorder) BeginSpan ¶
func (mr *MockConnManagementScopeMockRecorder) BeginSpan() *gomock.Call
BeginSpan indicates an expected call of BeginSpan.
func (*MockConnManagementScopeMockRecorder) Done ¶
func (mr *MockConnManagementScopeMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done.
func (*MockConnManagementScopeMockRecorder) PeerScope ¶
func (mr *MockConnManagementScopeMockRecorder) PeerScope() *gomock.Call
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 ¶
func (mr *MockConnManagementScopeMockRecorder) Stat() *gomock.Call
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 ¶
func (m *MockPeerScope) EXPECT() *MockPeerScopeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (mr *MockPeerScopeMockRecorder) Peer() *gomock.Call
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 ¶
func (mr *MockPeerScopeMockRecorder) Stat() *gomock.Call
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 ¶
func (m *MockProtocolScope) BeginSpan() (network.ResourceScopeSpan, error)
BeginSpan mocks base method.
func (*MockProtocolScope) EXPECT ¶
func (m *MockProtocolScope) EXPECT() *MockProtocolScopeMockRecorder
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 ¶
func (m *MockProtocolScope) Stat() network.ScopeStat
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 ¶
func (mr *MockProtocolScopeMockRecorder) Stat() *gomock.Call
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 ¶
func (m *MockResourceManager) EXPECT() *MockResourceManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResourceManager) OpenConnection ¶
func (m *MockResourceManager) OpenConnection(arg0 network.Direction, arg1 bool, arg2 multiaddr.Multiaddr) (network.ConnManagementScope, error)
OpenConnection mocks base method.
func (*MockResourceManager) OpenStream ¶
func (m *MockResourceManager) OpenStream(arg0 peer.ID, arg1 network.Direction) (network.StreamManagementScope, error)
OpenStream 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 ¶
func (mr *MockResourceManagerMockRecorder) Close() *gomock.Call
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 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 ¶
func (m *MockStreamManagementScope) BeginSpan() (network.ResourceScopeSpan, error)
BeginSpan mocks base method.
func (*MockStreamManagementScope) Done ¶
func (m *MockStreamManagementScope) Done()
Done mocks base method.
func (*MockStreamManagementScope) EXPECT ¶
func (m *MockStreamManagementScope) EXPECT() *MockStreamManagementScopeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStreamManagementScope) PeerScope ¶
func (m *MockStreamManagementScope) PeerScope() network.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 ¶
func (m *MockStreamManagementScope) ServiceScope() network.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 ¶
func (m *MockStreamManagementScope) Stat() network.ScopeStat
Stat mocks base method.
type MockStreamManagementScopeMockRecorder ¶
type MockStreamManagementScopeMockRecorder struct {
// contains filtered or unexported fields
}
MockStreamManagementScopeMockRecorder is the mock recorder for MockStreamManagementScope.
func (*MockStreamManagementScopeMockRecorder) BeginSpan ¶
func (mr *MockStreamManagementScopeMockRecorder) BeginSpan() *gomock.Call
BeginSpan indicates an expected call of BeginSpan.
func (*MockStreamManagementScopeMockRecorder) Done ¶
func (mr *MockStreamManagementScopeMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done.
func (*MockStreamManagementScopeMockRecorder) PeerScope ¶
func (mr *MockStreamManagementScopeMockRecorder) PeerScope() *gomock.Call
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 ¶
func (mr *MockStreamManagementScopeMockRecorder) ServiceScope() *gomock.Call
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 ¶
func (mr *MockStreamManagementScopeMockRecorder) Stat() *gomock.Call
Stat indicates an expected call of Stat.