Documentation
¶
Index ¶
- Constants
- Variables
- func WithUserPW(username string, password string) func(*Client)
- func WithVersion(version any) func(*Client)
- type Authentication
- type Client
- func (c *Client) ConnectV5(conn net.Conn, target any) (reply *s5.Reply, err error)
- func (c *Client) Dial(network string, address string) (conn net.Conn, err error)
- func (c *Client) DialTCP(network string, laddr, raddr *net.TCPAddr) (conn *net.TCPConn, err error)
- func (c *Client) HandshakeV5(conn net.Conn) (err error)
- type ProtocolV4
- type ProtocolV4A
- type ProtocolV5
Constants ¶
View Source
const ( V4 ProtocolV4 = 0x04 V4A ProtocolV4A = 0x04 V5 ProtocolV5 = 0x05 )
Variables ¶
View Source
var ( // ErrServerClosed is returned by the Server's Serve, ServeTLS, ListenAndServe, // and ListenAndServeTLS methods after a call to Shutdown or Close. ErrServerClosed = errors.New("http: Server closed") )
Functions ¶
func WithUserPW ¶
func WithVersion ¶
Types ¶
type Authentication ¶
type Client ¶
type Client struct { net.Dialer ProtocolVersion any Authentication Authentication ProxyAddr string }
func (*Client) ConnectV5 ¶
ConnectV5 target can be used as string for both ip and domain or *net.TCPAddr for ip:port only
type ProtocolV4 ¶
type ProtocolV4 uint8
type ProtocolV4A ¶
type ProtocolV4A uint8
type ProtocolV5 ¶
type ProtocolV5 uint8
Click to show internal directories.
Click to hide internal directories.