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

# Functions

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.
OptPeerPrivateKey configures the peer private key which is then used to derive the public key and peer ID.
WithClock sets the clock to use for this swarm.

# Variables

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

# Structs

MockConnectionGater is a mock connection gater to be used by the tests.

# Type aliases

Option is an option that can be passed when constructing a test swarm.