Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelayCallback ¶
DelayCallback is a callback that determines how much delay to apply to a packet.
type Direction ¶
type Direction int
Direction is the direction a packet is sent.
type DropCallback ¶
DropCallback is a callback that determines which packet gets dropped.
type Proxy ¶ added in v1.0.0
type Proxy struct { // Conn is the UDP socket that the proxy listens on for incoming packets from clients. Conn *net.UDPConn // ServerAddr is the address of the server that the proxy forwards packets to. ServerAddr *net.UDPAddr // DropPacket is a callback that determines which packet gets dropped. DropPacket DropCallback // DelayPacket is a callback that determines how much delay to apply to a packet. DelayPacket DelayCallback // contains filtered or unexported fields }
Proxy is a QUIC proxy that can drop and delay packets.
Click to show internal directories.
Click to hide internal directories.