Versions in this module Expand all Collapse all v0 v0.0.6 Dec 26, 2024 Changes in this version + var ErrListenerClosed = errors.New("listener closed") + type CapableConn interface + Transport func() Transport + type DialUpdate struct + Addr ma.Multiaddr + Conn CapableConn + Err error + Kind DialUpdateKind + type DialUpdateKind int + const UpdateKindDialFailed + const UpdateKindDialSuccessful + const UpdateKindHandshakeProgressed + func (k DialUpdateKind) String() string + type DialUpdater interface + DialWithUpdates func(context.Context, ma.Multiaddr, peer.ID, chan<- DialUpdate) (CapableConn, error) + type Listener interface + Accept func() (CapableConn, error) + Addr func() net.Addr + Close func() error + Multiaddr func() ma.Multiaddr + type Resolver interface + Resolve func(ctx context.Context, maddr ma.Multiaddr) ([]ma.Multiaddr, error) + type SkipResolver interface + SkipResolve func(ctx context.Context, maddr ma.Multiaddr) bool + type Transport interface + CanDial func(addr ma.Multiaddr) bool + Dial func(ctx context.Context, raddr ma.Multiaddr, p peer.ID) (CapableConn, error) + Listen func(laddr ma.Multiaddr) (Listener, error) + Protocols func() []int + Proxy func() bool + type TransportNetwork interface + AddTransport func(t Transport) error + type Upgrader interface + Upgrade func(ctx context.Context, t Transport, maconn manet.Conn, dir network.Direction, ...) (CapableConn, error) + UpgradeListener func(Transport, manet.Listener) Listener