Versions in this module Expand all Collapse all v0 v0.23.5 Nov 8, 2022 Changes in this version + const DefaultProtocolVersion + const ID + const IDDelta + const IDPush + const ServiceName + var ActivationThresh = 4 + var GCInterval = 10 * time.Minute + var StreamReadTimeout = 60 * time.Second + func HasConsistentTransport(a ma.Multiaddr, green []ma.Multiaddr) bool + func NewIDService(h host.Host, opts ...Option) (*idService, error) + type IDService interface + IdentifyConn func(network.Conn) + IdentifyWait func(network.Conn) <-chan struct{} + ObservedAddrsFor func(local ma.Multiaddr) []ma.Multiaddr + OwnObservedAddrs func() []ma.Multiaddr + type ObservedAddrManager struct + func NewObservedAddrManager(host host.Host) (*ObservedAddrManager, error) + func (oas *ObservedAddrManager) Addrs() []ma.Multiaddr + func (oas *ObservedAddrManager) AddrsFor(addr ma.Multiaddr) (addrs []ma.Multiaddr) + func (oas *ObservedAddrManager) Close() error + 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 ProtocolVersion(s string) Option + func UserAgent(ua string) Option