Versions in this module Expand all Collapse all v0 v0.19.0 Mar 28, 2020 Changes in this version + const AtypDomainName + const AtypIPv4 + const AtypIPv6 + const CommandTCP + const CommandUDP + const IDBytesLen + const OptionChunkMasking + const OptionChunkStream + const Version + var CipherMapping = map[string]byte + func NewWebsocketConn(conn net.Conn, c *WebsocketConfig) (net.Conn, error) + type Client struct + func NewClient(config Config) (*Client, error) + func (c *Client) New(conn net.Conn, dst *DstAddr) (net.Conn, error) + type Config struct + AlterID uint16 + HostName string + NetWork string + Port string + Security string + SessionCache tls.ClientSessionCache + SkipCertVerify bool + TLS bool + UUID string + WebSocketHeaders map[string]string + WebSocketPath 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 ID struct + CmdKey []byte + UUID *uuid.UUID + type Security = byte + const SecurityAES128GCM + const SecurityCHACHA20POLY1305 + const SecurityNone + type WebsocketConfig struct + Headers http.Header + Host string + Path string + TLS bool + TLSConfig *tls.Config