package
0.0.0-20250128101304-ea1d59d1c274
Repository: https://github.com/magicwave-io/go-libp2p.git
Documentation: pkg.go.dev

# Functions

MuxerConstructor creates a multiplex constructor from the passed parameter using reflection.
SecurityConstructor creates a security constructor from the passed parameter using reflection.
TransportConstructor uses reflection to turn a function that constructs a transport into a TptC.

# Structs

Config describes a set of settings for a libp2p node This is *not* a stable interface.
MsMuxC is a tuple containing a multiplex transport constructor and a protocol ID.
MsSecC is a tuple containing a security transport constructor and a protocol ID.

# Type aliases

AddrsFactory is a function that takes a set of multiaddrs we're listening on and returns the set of multiaddrs we should advertise to the network.
MuxC is a stream multiplex transport constructor.
NATManagerC is a NATManager constructor.
Option is a libp2p config option that can be given to the libp2p constructor (`libp2p.New`).
SecC is a security transport constructor.
TptC is the type for libp2p transport constructors.