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

# Functions

NewHost constructs a new *BasicHost and activates it by attaching its stream and connection handlers to the given inet.Network.
NewNATManager creates a NAT manager.

# Variables

DefaultAddrsFactory is the default value for HostOpts.AddrsFactory.
DefaultNegotiationTimeout is the default value for HostOpts.NegotiationTimeout.

# Structs

BasicHost is the basic implementation of the host.Host interface.
HostOpts holds options that can be passed to NewHost in order to customize construction of the *BasicHost.

# Interfaces

NATManager is a simple interface to manage NAT devices.

# Type aliases

AddrsFactory functions can be passed to New in order to override addresses returned by Addrs.