Documentation ¶
Index ¶
- func FromQuicMultiaddr(addr ma.Multiaddr) (*net.UDPAddr, quic.VersionNumber, error)
- func ToQuicMultiaddr(na net.Addr, version quic.VersionNumber) (ma.Multiaddr, error)
- type ConnManager
- func (c *ConnManager) Close() error
- func (c *ConnManager) Dial(network string, raddr *net.UDPAddr) (pConn, error)
- func (c *ConnManager) DialQUIC(ctx context.Context, raddr ma.Multiaddr, tlsConf *tls.Config, ...) (quic.Connection, error)
- func (c *ConnManager) ListenQUIC(addr ma.Multiaddr, tlsConf *tls.Config, ...) (Listener, error)
- func (c *ConnManager) Protocols() []int
- type Listener
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromQuicMultiaddr ¶
Types ¶
type ConnManager ¶
type ConnManager struct {
// contains filtered or unexported fields
}
func NewConnManager ¶
func NewConnManager(statelessResetKey quic.StatelessResetKey, opts ...Option) (*ConnManager, error)
func (*ConnManager) Close ¶
func (c *ConnManager) Close() error
func (*ConnManager) Dial ¶
func (c *ConnManager) Dial(network string, raddr *net.UDPAddr) (pConn, error)
func (*ConnManager) ListenQUIC ¶
func (*ConnManager) Protocols ¶
func (c *ConnManager) Protocols() []int
type Option ¶
type Option func(*ConnManager) error
func DisableDraft29 ¶
func DisableDraft29() Option
DisableDraft29 disables support for QUIC draft-29. This option should be set, unless support for this legacy QUIC version is needed for backwards compatibility. Support for QUIC draft-29 is already deprecated and will be removed in the future, see https://github.com/seqsy/go-libp2p/issues/1841.
func DisableReuseport ¶
func DisableReuseport() Option
func EnableMetrics ¶
func EnableMetrics() Option
EnableMetrics enables Prometheus metrics collection.
Click to show internal directories.
Click to hide internal directories.