package
0.11.0
Repository: https://github.com/libp2p/go-libp2p-swarm.git
Documentation: pkg.go.dev

# Functions

Deprecated: use github.com/libp2p/go-libp2p/p2p/net/swarm/testing.DialTimeout instead.
DivulgeAddresses adds swarm a's addresses to swarm b's peerstore.
GenSwarm generates a new test swarm.
GenUpgrader creates a new connection upgrader for use with this swarm.
OptConnGater configures the given connection gater on the test Deprecated: use github.com/libp2p/go-libp2p/p2p/net/swarm/testing.OptConnGater instead.
OptPeerPrivateKey configures the peer private key which is then used to derive the public key and peer ID.
Deprecated: use github.com/libp2p/go-libp2p/p2p/net/swarm/testing.OptResourceManager instead.

# Variables

OptDialOnly prevents the test swarm from listening.
OptDisableQUIC disables QUIC.
OptDisableReuseport disables reuseport in this test swarm.
OptDisableTCP disables TCP.

# Type aliases

MockConnectionGater is a mock connection gater to be used by the tests.
Option is an option that can be passed when constructing a test swarm.