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

# Packages

# Functions

EnableService specifies that AutoNAT should be allowed to run a NAT service to help other peers determine their own NAT status.
IsDialError returns true if the AutoNAT peer signalled an error dialing back.
IsDialRefused returns true if the AutoNAT peer signalled refusal to dial back.
New creates a new NAT autodiscovery system attached to a host.
NewAutoNATClient creates a fresh instance of an AutoNATClient If addrFunc is nil, h.Addrs will be used.
UsingAddresses allows overriding which Addresses the AutoNAT client believes are "its own".
WithMetricsTracer uses mt to track autonat metrics.
WithoutStartupDelay removes the initial delay the NAT subsystem typically uses as a buffer for ensuring that connectivity and guesses as to the hosts local interfaces have settled down during startup.
WithoutThrottling indicates that this autonat service should not place restrictions on how many peers it is willing to help when acting as a server.
WithPeerThrottling specifies a limit for the maximum number of IP checks this node will provide to an individual peer in each `interval`.
WithReachability overrides autonat to simply report an over-ridden reachability status.
WithSchedule configures how aggressively probes will be made to verify the address of the host.
WithThrottling specifies how many peers (`amount`) it is willing to help ever `interval` amount of time when acting as a server.

# Constants

AutoNATProto identifies the autonat service protocol.

# Structs

AmbientAutoNAT is the implementation of ambient NAT autodiscovery.
Error wraps errors signalled by AutoNAT services.
StaticAutoNAT is a simple AutoNAT implementation when a single NAT status is desired.

# Interfaces

AutoNAT is the interface for NAT autodiscovery.
Client is a stateless client interface to AutoNAT peers.

# Type aliases

AddrFunc is a function returning the candidate addresses for the local host.
Option is an Autonat option for configuration.