package observedaddrs

Import Path
	github.com/libp2p/go-libp2p/p2p/host/observedaddrs (on go.dev)

Dependency Relation
	imports 14 packages, and imported by one package

Involved Source Files manager.go
Package-Level Type Names (only one)
/* sort by: | */
Manager maps connection's local multiaddrs to their externally observable multiaddress Addrs return all observed addresses with at least minObservers observers If minObservers <= 0, it will return all addresses with at least ActivationThresh observers. AddrsFor return all activated observed addresses associated with the given (resolved) listen address. (*Manager) Close() error Start tracking addrs *Manager : github.com/libp2p/go-libp2p/p2p/host/basic.ObservedAddrsManager *Manager : github.com/prometheus/common/expfmt.Closer *Manager : io.Closer func NewManager(eventbus event.Bus, net network.Network) (*Manager, error)
Package-Level Functions (only one)
NewManager returns a new manager using peerstore.OwnObservedAddressTTL as the TTL.
Package-Level Variables (only one)
ActivationThresh is the minimum number of observers required for an observed address to be considered valid. We may not advertise this address even if we have these many observations if better observed addresses are available.