Versions in this module Expand all Collapse all v1 v1.7.1 Jan 29, 2021 v1.7.0 Dec 8, 2020 Changes in this version + const ID + const IDDelta + const IDPush + const LibP2PVersion + var ActivationThresh = 4 + var ClientVersion = "github.com/ipfs/fs-repo-migrations/ipfs-10-to-11/_vendor/github.com/libp2p/go-libp2p" + var GCInterval = 10 * time.Minute + func HasConsistentTransport(a ma.Multiaddr, green []ma.Multiaddr) bool + type IDService struct + Host host.Host + UserAgent string + func NewIDService(h host.Host, opts ...Option) *IDService + func (ids *IDService) Close() error + func (ids *IDService) IdentifyConn(c network.Conn) + func (ids *IDService) IdentifyWait(c network.Conn) <-chan struct{} + func (ids *IDService) ObservedAddrsFor(local ma.Multiaddr) []ma.Multiaddr + func (ids *IDService) OwnObservedAddrs() []ma.Multiaddr + type ObservedAddrManager struct + func NewObservedAddrManager(ctx context.Context, host host.Host) *ObservedAddrManager + func (oas *ObservedAddrManager) Addrs() []ma.Multiaddr + func (oas *ObservedAddrManager) AddrsFor(addr ma.Multiaddr) (addrs []ma.Multiaddr) + func (oas *ObservedAddrManager) Record(conn network.Conn, observed ma.Multiaddr) + func (oas *ObservedAddrManager) SetTTL(ttl time.Duration) + func (oas *ObservedAddrManager) TTL() time.Duration + type Option func(*config) + func DisableSignedPeerRecord() Option + func UserAgent(ua string) Option