Versions in this module Expand all Collapse all v0 v0.0.7 Sep 22, 2021 Changes in this version + type BasicStat struct + func NewStat(direction Direction, establishedTime time.Time, ...) *BasicStat + func (s *BasicStat) Direction() Direction + func (s *BasicStat) EstablishedTime() time.Time + func (s *BasicStat) Extra() map[interface{}]interface{} + func (s *BasicStat) IsClosed() bool + func (s *BasicStat) SetClosed() + type Conn interface + AcceptBidirectionalStream func() (Stream, error) + AcceptReceiveStream func() (ReceiveStream, error) + CreateBidirectionalStream func() (Stream, error) + CreateSendStream func() (SendStream, error) + LocalAddr func() ma.Multiaddr + LocalNetAddr func() net.Addr + LocalPeerID func() peer.ID + Network func() Network + RemoteAddr func() ma.Multiaddr + RemoteNetAddr func() net.Addr + RemotePeerID func() peer.ID + type ConnHandler func(conn Conn) (bool, error) + type Dialer interface + Dial func(ctx context.Context, remoteAddr ma.Multiaddr) (Conn, error) + type Direction int + const Inbound + const Outbound + const Unknown + func (d Direction) String() string + type Listener interface + Listen func(ctx context.Context, addrs ...ma.Multiaddr) error + ListenAddresses func() []ma.Multiaddr + type Network interface + Closed func() bool + Disconnect func(conn Conn) error + LocalPeerID func() peer.ID + SetNewConnHandler func(handler ConnHandler) + type ReceiveStream interface + type SendStream interface + type Stat interface + Direction func() Direction + EstablishedTime func() time.Time + Extra func() map[interface{}]interface{} + IsClosed func() bool + SetClosed func() + type Stream interface