Documentation ¶
Overview ¶
Package proxy provides implementations of proxy protocols.
Index ¶
- func Dial(metadata *M.Metadata) (net.Conn, error)
- func DialContext(ctx context.Context, metadata *M.Metadata) (net.Conn, error)
- func DialUDP(metadata *M.Metadata) (net.PacketConn, error)
- func SetDialer(d Dialer)
- type Base
- type Dialer
- type Direct
- type HTTP
- type Proxy
- type Reject
- type Shadowsocks
- type Socks4
- type Socks5
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialContext ¶
DialContext uses default Dialer to dial TCP with context.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) DialContext ¶
type Shadowsocks ¶
type Shadowsocks struct { *Base // contains filtered or unexported fields }
func NewShadowsocks ¶
func NewShadowsocks(addr, method, password, obfsMode, obfsHost string) (*Shadowsocks, error)
func (*Shadowsocks) DialContext ¶
func (*Shadowsocks) DialUDP ¶
func (ss *Shadowsocks) DialUDP(*M.Metadata) (net.PacketConn, error)
type Socks5 ¶
type Socks5 struct { *Base // contains filtered or unexported fields }
func (*Socks5) DialContext ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.