Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// 这个支持单条连接。不要使用在浏览器中。
// 支持:
// http://192.168.2.31/http://www.baidu.com/
// http://192.168.2.31/?url=http://www.baidu.com/
LinkPosterior bool // 支持连接后面的,如:http://192.168.2.31/http://www.baidu.com/
DataBufioSize int // 缓冲区大小
Auth func(username, password string) bool // 认证
Addr string // 代理IP地址
Server http.Server // 服务器
DialContext func(ctx context.Context, network, address string) (net.Conn, error) // 拨号
ErrorLog *log.Logger // 日志
ErrorLogLevel LogLevel // 日志级别
Tr http.RoundTripper // 代理
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.