Documentation ¶
Index ¶
- func FasthttpHTTPDialer(proxy string) fasthttp.DialFunc
- func FasthttpHTTPDialerTimeout(proxy string, timeout time.Duration) fasthttp.DialFunc
- func FasthttpProxyHTTPDialer() fasthttp.DialFunc
- func FasthttpProxyHTTPDialerTimeout(timeout time.Duration) fasthttp.DialFunc
- func FasthttpSocksDialer(proxyAddr string) fasthttp.DialFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FasthttpHTTPDialer ¶
FasthttpHTTPDialer returns a fasthttp.DialFunc that dials using the provided HTTP proxy.
Example usage:
c := &fasthttp.Client{ Dial: fasthttpproxy.FasthttpHTTPDialer("username:password@localhost:9050"), }
func FasthttpHTTPDialerTimeout ¶
FasthttpHTTPDialer returns a fasthttp.DialFunc that dials using the provided HTTP proxy using the given timeout.
Example usage:
c := &fasthttp.Client{ Dial: fasthttpproxy.FasthttpHTTPDialerTimeout("username:password@localhost:9050", time.Second * 2), }
func FasthttpProxyHTTPDialer ¶
FasthttpProxyHTTPDialer returns a fasthttp.DialFunc that dials using the the env(HTTP_PROXY, HTTPS_PROXY and NO_PROXY) configured HTTP proxy.
Example usage:
c := &fasthttp.Client{ Dial: FasthttpProxyHTTPDialer(), }
func FasthttpSocksDialer ¶
FasthttpSocksDialer returns a fasthttp.DialFunc that dials using the provided SOCKS5 proxy.
Example usage:
c := &fasthttp.Client{ Dial: fasthttpproxy.FasthttpSocksDialer("localhost:9050"), }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.