Versions in this module Expand all Collapse all v0 v0.2.1 Dec 11, 2022 Changes in this version + type DelayCallback func(dir Direction, packetCount uint64) time.Duration + var NoDelay DelayCallback = func(Direction, uint64) time.Duration { ... } + type Direction int + const DirectionBoth + const DirectionIncoming + const DirectionOutgoing + func (d Direction) Is(dir Direction) bool + func (d Direction) String() string + type DropCallback func(dir Direction, packetCount uint64) bool + var NoDropper DropCallback = func(Direction, uint64) bool { ... } + type Opts struct + DelayPacket DelayCallback + DropPacket DropCallback + RemoteAddr string + type QuicProxy struct + func NewQuicProxy(local string, version protocol.VersionNumber, opts *Opts) (*QuicProxy, error) + func (p *QuicProxy) Close() error + func (p *QuicProxy) LocalAddr() net.Addr + func (p *QuicProxy) LocalPort() int