Preparing search index...
The search index is not available
Documentation
Documentation
@libp2p/interface-mocks
<internal>
MockNetwork
Class MockNetwork
Hierarchy
MockNetwork
Index
Constructors
constructor
Properties
components
Methods
add
Node
get
Node
reset
Constructors
constructor
new
Mock
Network
(
)
:
MockNetwork
Returns
MockNetwork
Properties
Private
components
components
:
MockNetworkComponents
[]
= []
Methods
add
Node
add
Node
(
components
:
MockNetworkComponents
)
:
void
Parameters
components:
MockNetworkComponents
Returns
void
get
Node
get
Node
(
peerId
:
PeerId
|
Multiaddr
[]
)
:
MockNetworkComponents
Parameters
peerId:
PeerId
|
Multiaddr
[]
Returns
MockNetworkComponents
reset
reset
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Documentation
@libp2p/interface-
address-
manager -
v3.0.1
@libp2p/interface-
compliance-
tests -
v3.0.7
@libp2p/interface-
connection -
v5.1.1
<internal>
@libp2p/interface-
connection-
compliance-
tests -
v2.0.9
<internal>
@libp2p/interface-
connection-
encrypter -
v4.0.1
<internal>
@libp2p/interface-
connection-
encrypter-
compliance-
tests -
v5.0.1
<internal>
@libp2p/interface-
connection-
gater -
v3.0.1
<internal>
@libp2p/interface-
connection-
manager -
v3.0.1
<internal>
@libp2p/interface-
content-
routing -
v2.1.1
<internal>
@libp2p/interface-
dht -
v2.0.3
<internal>
@libp2p/interface-
keychain -
v2.0.5
<internal>
@libp2p/interface-
keys -
v1.0.8
@libp2p/interface-
libp2p -
v3.2.0
<internal>
@libp2p/interface-
metrics -
v4.0.8
<internal>
@libp2p/interface-
mocks -
v12.0.1
<internal>
@libp2p/interface-
peer-
discovery -
v2.0.0
<internal>
@libp2p/interface-
peer-
discovery-
compliance-
tests -
v2.0.8
<internal>
@libp2p/interface-
peer-
id -
v2.0.2
<internal>
@libp2p/interface-
peer-
info -
v1.0.10
<internal>
@libp2p/interface-
peer-
routing -
v1.1.1
<internal>
@libp2p/interface-
peer-
store -
v2.0.4
<internal>
@libp2p/interface-
pubsub -
v4.0.1
<internal>
@libp2p/interface-
pubsub-
compliance-
tests -
v5.0.7
<internal>
@libp2p/interface-
record -
v2.0.7
<internal>
@libp2p/interface-
record-
compliance-
tests -
v2.0.5
<internal>
@libp2p/interface-
registrar -
v2.0.12
<internal>
@libp2p/interface-
stream-
muxer -
v4.1.2
<internal>
@libp2p/interface-
stream-
muxer-
compliance-
tests -
v7.0.3
<internal>
@libp2p/interface-
transport -
v4.0.3
<internal>
@libp2p/interface-
transport-
compliance-
tests -
v4.0.2
<internal>
@libp2p/interfaces -
v3.3.2
Mock
Network
constructor
components
add
Node
get
Node
reset