p2p/host/peerstore/pstoremem/addr_book library

AddrBook implementation for the memory-based peerstore.

Classes

AddrSub
A subscription to address updates.
AddrSubManager
A manager for address subscriptions.
ExpiringAddr
An address with an expiration time.
MemoryAddrBook
A memory-based implementation of the AddrBook interface.
PeerAddrs
A collection of peer addresses.
PeerRecordState

Functions

newAddrBook({int maxUnconnectedAddrs = 1000000}) MemoryAddrBook
Creates a new memory-based address book implementation.
ttlIsConnected(Duration ttl) bool
Returns true if the TTL is at least as long as the connected TTL.