Versions in this module Expand all Collapse all v0 v0.0.2 Apr 6, 2021 Changes in this version + const ID + const IDDelta + const IDPush + const LibP2PVersion + var ActivationThresh = 4 + var ClientVersion = "gitlab.dms3.io/dms3/public/go-dms3-p2p" + var GCInterval = 10 * time.Minute + var StreamReadTimeout = 60 * time.Second + 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, error) + 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, error) + 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