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

# Functions

AddrInfos returns an AddrInfo for each specified peer ID, in-order.
GetCertifiedAddrBook is a helper to "upcast" an AddrBook to a CertifiedAddrBook by using type assertion.

# Constants

ConnectedAddrTTL is the ttl used for the addresses of a peer to whom we're connected directly.
PermanentAddrTTL is the ttl for a "permanent address" (e.g.

# Variables

AddressTTL is the expiration time of addresses.
Deprecated: use github.com/libp2p/go-libp2p/core/peerstore.ErrNotFound instead.
OwnObservedAddrTTL is used for our own external addresses observed by peers.
ProviderAddrTTL is the TTL of an address we've received from a provider.
RecentlyConnectedAddrTTL is used when we recently connected to a peer.
TempAddrTTL is the ttl used for a short lived address.

# Type aliases

AddrBook holds the multiaddrs of peers.
CertifiedAddrBook manages "self-certified" addresses for remote peers.
KeyBook tracks the keys of Peers.
Metrics tracks metrics across a set of peers.
PeerMetadata can handle values of any type.
Peerstore provides a threadsafe store of Peer related information.
ProtoBook tracks the protocols supported by peers.