Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHolePunching = errors.New("hole punching attempted; no active dial")
View Source
var HolePunchTimeout = 5 * time.Second
Functions ¶
func NewTransport ¶
func NewTransport(key ic.PrivKey, psk pnet.PSK, gater connmgr.ConnectionGater, rcmgr network.ResourceManager, opts ...Option) (tpt.Transport, error)
NewTransport creates a new QUIC transport
Types ¶
type Option ¶ added in v0.23.0
type Option func(opts *config) error
func DisableReuseport ¶ added in v0.23.0
func DisableReuseport() Option
func WithMetrics ¶ added in v0.23.0
func WithMetrics() Option
WithMetrics enables Prometheus metrics collection.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.