Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextDialerFunc ¶
ContextDialerFunc is a function that implements Dialer and ContextDialer.
func (ContextDialerFunc) Dial ¶
func (f ContextDialerFunc) Dial(network, addr string) (net.Conn, error)
Dial is needed to satisfy the proxy.Dialer interface. It is never called as proxy.ContextDialer is used instead if available.
func (ContextDialerFunc) DialContext ¶
type HTTPProxyDialer ¶
type HTTPProxyDialer struct { ConnectRequestModifier func(req *http.Request) error // contains filtered or unexported fields }
func HTTPProxy ¶
func HTTPProxy(dial ContextDialerFunc, proxyURL *url.URL) *HTTPProxyDialer
func HTTPSProxy ¶
func HTTPSProxy(dial ContextDialerFunc, proxyURL *url.URL, tlsConfig *tls.Config) *HTTPProxyDialer
func (*HTTPProxyDialer) DialContext ¶
type SOCKS5ProxyDialer ¶
type SOCKS5ProxyDialer struct {
// contains filtered or unexported fields
}
func SOCKS5Proxy ¶
func SOCKS5Proxy(dial ContextDialerFunc, proxyURL *url.URL) *SOCKS5ProxyDialer
func (*SOCKS5ProxyDialer) DialContext ¶
Click to show internal directories.
Click to hide internal directories.