Versions in this module Expand all Collapse all v1 v1.19.0 Nov 25, 2023 Changes in this version + const AtypDomainName + const AtypIPv4 + const AtypIPv6 + const CommandTCP + const CommandUDP + const IDBytesLen + const OptionChunkMasking + const OptionChunkStream + const Version + func StreamH2Conn(conn net.Conn, cfg *H2Config) (net.Conn, error) + func StreamHTTPConn(conn net.Conn, cfg *HTTPConfig) net.Conn + func StreamTLSConn(conn net.Conn, cfg *TLSConfig) (net.Conn, error) + func StreamWebsocketConn(conn net.Conn, c *WebsocketConfig) (net.Conn, error) + type Client struct + func NewClient(config Config) (*Client, error) + func (c *Client) StreamConn(conn net.Conn, dst *DstAddr) (net.Conn, error) + type Config struct + AlterID uint16 + HostName string + IsAead bool + IsVless bool + Port string + Security string + UUID string + type Conn struct + func (vc *Conn) Read(b []byte) (int, error) + func (vc *Conn) Write(b []byte) (int, error) + type DstAddr struct + Addr []byte + AddrType byte + Port uint + UDP bool + type H2Config struct + Hosts []string + Path string + type HTTPConfig struct + Headers map[string][]string + Host string + Method string + Path []string + type ID struct + CmdKey []byte + UUID *uuid.UUID + type Security = byte + const SecurityAES128GCM + const SecurityCHACHA20POLY1305 + const SecurityNone + const SecurityZero + type TLSConfig struct + Host string + NextProtos []string + SkipCertVerify bool + type WebsocketConfig struct + EarlyDataHeaderName string + Headers http.Header + Host string + MaxEarlyData int + Path string + Port string + TLS bool + TLSConfig *tls.Config