Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Template is the URI template of the UDP proxy. Template *uritemplate.Template // TLSClientConfig is the TLS client config used when dialing the QUIC connection to the proxy. // It must set the h3 ALPN. TLSClientConfig *tls.Config // QUICConfig is the QUIC config used when dialing the QUIC connection. QUICConfig *quic.Config // contains filtered or unexported fields }
type Proxy ¶
type Proxy struct { http3.Server // Template is the URI template that clients will use to configure this UDP proxy. Template *uritemplate.Template // Allow determines if a proxying request from a client is allowed to proceed. // It is called after the requested target address has been resolved. Allow func(context.Context, *net.UDPAddr) bool // DialTarget is called when the proxy needs to open a new UDP socket to the target server. // It must return a connected UDP socket. // TODO(#3): support unconnected sockets. DialTarget func(*net.UDPAddr) (*net.UDPConn, error) // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.