Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DialContextWrapper ¶
func (*DialContextWrapper) Dial ¶
func (d *DialContextWrapper) Dial(network, addr string) (net.Conn, error)
func (*DialContextWrapper) DialContext ¶
func (d *DialContextWrapper) DialContext(ctx context.Context, network, addr string) (net.Conn, error)
创建sync.Pool用于复用dialResult对象
var dialResultPool = sync.Pool{
New: func() interface{} {
return &dialResult{}
},
}
type HttpProxyDialer ¶
httpProxyDialer 实现 proxy.Dialer 接口
Click to show internal directories.
Click to hide internal directories.