Documentation
¶
Overview ¶
Package httpcloak exposes helpers that adapt decodo configuration and leases into proxy strings accepted by github.com/sardanioss/httpcloak.
Proxy Strings ¶
Convert a decodo Config into a proxy string for httpcloak:
proxyStr, err := httpcloakadapter.ProxyString(config)
Or use a Lease already obtained from a Pool:
proxyStr := httpcloakadapter.ProxyStringFromLease(lease)
SOCKS5 Support ¶
For SOCKS5 proxies, use ProxyStringSOCKS5. Note that SOCKS5 targeting is done via username parameters; the scheme socks5h:// means DNS resolution occurs on the proxy side:
socks5Str, err := httpcloakadapter.ProxyStringSOCKS5(config)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProxyString ¶
ProxyString converts a Decodo config into the proxy string accepted by httpcloak.
func ProxyStringFromLease ¶
ProxyStringFromLease returns the already-built proxy string stored in a lease.
func ProxyStringSOCKS5 ¶ added in v0.3.0
ProxyStringSOCKS5 converts a Decodo config into a SOCKS5 proxy string for httpcloak. SOCKS5 always uses gate.decodo.com:7000 - targeting is done via username parameters. The "h" in socks5h:// means hostname resolution occurs on the proxy side.
Types ¶
This section is empty.