Source File
interface.go
Belonging Package
github.com/libp2p/go-libp2p/p2p/host/autonat
package autonatimport (ma)// AutoNAT is the interface for NAT autodiscoverytype AutoNAT interface {// Status returns the current NAT statusStatus() network.Reachabilityio.Closer}// Client is a stateless client interface to AutoNAT peerstype Client interface {// DialBack requests from a peer providing AutoNAT services to test dial back// and report the address on a successful connection.DialBack(ctx context.Context, p peer.ID) error}// AddrFunc is a function returning the candidate addresses for the local host.type AddrFunc func() []ma.Multiaddr// Option is an Autonat option for configurationtype Option func(*config) error
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |