Documentation ¶
Index ¶
- func DelayTest(proxy C.Proxy, url string) (t int16, err error)
- type Direct
- type DirectAdapter
- type NopConn
- func (rw *NopConn) Close() error
- func (rw *NopConn) LocalAddr() net.Addr
- func (rw *NopConn) Read(b []byte) (int, error)
- func (rw *NopConn) RemoteAddr() net.Addr
- func (rw *NopConn) SetDeadline(time.Time) error
- func (rw *NopConn) SetReadDeadline(time.Time) error
- func (rw *NopConn) SetWriteDeadline(time.Time) error
- func (rw *NopConn) Write(b []byte) (int, error)
- type Reject
- type RejectAdapter
- type Selector
- type ShadowSocks
- type ShadowsocksAdapter
- type Socks5
- type Socks5Adapter
- type URLTest
- type Vmess
- type VmessAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Direct ¶
type Direct struct{}
func (*Direct) Type ¶
func (d *Direct) Type() C.AdapterType
type DirectAdapter ¶
type DirectAdapter struct {
// contains filtered or unexported fields
}
DirectAdapter is a directly connected adapter
type NopConn ¶
type NopConn struct{}
func (*NopConn) RemoteAddr ¶
RemoteAddr is fake function for net.Conn
func (*NopConn) SetDeadline ¶
SetDeadline is fake function for net.Conn
func (*NopConn) SetReadDeadline ¶
SetReadDeadline is fake function for net.Conn
func (*NopConn) SetWriteDeadline ¶
SetWriteDeadline is fake function for net.Conn
type Reject ¶
type Reject struct { }
func (*Reject) Type ¶
func (r *Reject) Type() C.AdapterType
type RejectAdapter ¶
type RejectAdapter struct {
// contains filtered or unexported fields
}
RejectAdapter is a reject connected adapter
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
func (*Selector) Type ¶
func (s *Selector) Type() C.AdapterType
type ShadowSocks ¶
type ShadowSocks struct {
// contains filtered or unexported fields
}
func NewShadowSocks ¶
func (*ShadowSocks) Generator ¶
func (ss *ShadowSocks) Generator(addr *C.Addr) (adapter C.ProxyAdapter, err error)
func (*ShadowSocks) Name ¶
func (ss *ShadowSocks) Name() string
func (*ShadowSocks) Type ¶
func (ss *ShadowSocks) Type() C.AdapterType
type ShadowsocksAdapter ¶
type ShadowsocksAdapter struct {
// contains filtered or unexported fields
}
ShadowsocksAdapter is a shadowsocks adapter
func (*ShadowsocksAdapter) Close ¶
func (ss *ShadowsocksAdapter) Close()
Close is used to close connection
func (*ShadowsocksAdapter) Conn ¶
func (ss *ShadowsocksAdapter) Conn() net.Conn
type Socks5 ¶
type Socks5 struct {
// contains filtered or unexported fields
}
func (*Socks5) Type ¶
func (ss *Socks5) Type() C.AdapterType
type Socks5Adapter ¶
type Socks5Adapter struct {
// contains filtered or unexported fields
}
Socks5Adapter is a shadowsocks adapter
func (*Socks5Adapter) Conn ¶
func (ss *Socks5Adapter) Conn() net.Conn
type URLTest ¶
type URLTest struct {
// contains filtered or unexported fields
}
func NewURLTest ¶
func (*URLTest) Type ¶
func (u *URLTest) Type() C.AdapterType
type Vmess ¶ added in v0.7.0
type Vmess struct {
// contains filtered or unexported fields
}
func (*Vmess) Type ¶ added in v0.7.0
func (ss *Vmess) Type() C.AdapterType
type VmessAdapter ¶ added in v0.7.0
type VmessAdapter struct {
// contains filtered or unexported fields
}
VmessAdapter is a vmess adapter
func (*VmessAdapter) Close ¶ added in v0.7.0
func (v *VmessAdapter) Close()
Close is used to close connection
func (*VmessAdapter) Conn ¶ added in v0.7.0
func (v *VmessAdapter) Conn() net.Conn
Click to show internal directories.
Click to hide internal directories.