libp2pquic

package
v0.23.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 31 Imported by: 0

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

type Option func(opts *config) error

func DisableReuseport

func DisableReuseport() Option

func WithMetrics

func WithMetrics() Option

WithMetrics enables Prometheus metrics collection.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL