Documentation ¶
Index ¶
- func ConfigureHTTP3(config aTLS.ServerConfig) error
- func CreateTransport(conn net.PacketConn, quicConnPtr *quic.EarlyConnection, serverAddr M.Socksaddr, ...) (http.RoundTripper, error)
- func Dial(ctx context.Context, conn net.PacketConn, addr net.Addr, config aTLS.Config, ...) (quic.Connection, error)
- func DialEarly(ctx context.Context, conn net.PacketConn, addr net.Addr, config aTLS.Config, ...) (quic.EarlyConnection, error)
- type Config
- type EarlyListener
- type Listener
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureHTTP3 ¶
func ConfigureHTTP3(config aTLS.ServerConfig) error
func CreateTransport ¶
func CreateTransport(conn net.PacketConn, quicConnPtr *quic.EarlyConnection, serverAddr M.Socksaddr, config aTLS.Config, quicConfig *quic.Config) (http.RoundTripper, error)
Types ¶
type Config ¶
type Config interface { Dial(ctx context.Context, conn net.PacketConn, addr net.Addr, config *quic.Config) (quic.Connection, error) DialEarly(ctx context.Context, conn net.PacketConn, addr net.Addr, config *quic.Config) (quic.EarlyConnection, error) CreateTransport(conn net.PacketConn, quicConnPtr *quic.EarlyConnection, serverAddr M.Socksaddr, quicConfig *quic.Config) http.RoundTripper }
type EarlyListener ¶
type EarlyListener interface { Accept(ctx context.Context) (quic.EarlyConnection, error) Close() error Addr() net.Addr }
func ListenEarly ¶
func ListenEarly(conn net.PacketConn, config aTLS.ServerConfig, quicConfig *quic.Config) (EarlyListener, error)
type Listener ¶
type Listener interface { Accept(ctx context.Context) (quic.Connection, error) Close() error Addr() net.Addr }
func Listen ¶
func Listen(conn net.PacketConn, config aTLS.ServerConfig, quicConfig *quic.Config) (Listener, error)
type ServerConfig ¶
type ServerConfig interface { Listen(conn net.PacketConn, config *quic.Config) (Listener, error) ListenEarly(conn net.PacketConn, config *quic.Config) (EarlyListener, error) ConfigureHTTP3() }
Click to show internal directories.
Click to hide internal directories.