httpcloak

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: MIT Imports: 2 Imported by: 0

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

func ProxyString(config decodo.Config) (string, error)

ProxyString converts a Decodo config into the proxy string accepted by httpcloak.

func ProxyStringFromLease

func ProxyStringFromLease(lease decodo.Lease) string

ProxyStringFromLease returns the already-built proxy string stored in a lease.

func ProxyStringSOCKS5 added in v0.3.0

func ProxyStringSOCKS5(config decodo.Config) (string, error)

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.

func ProxyStringSOCKS5FromLease added in v0.3.0

func ProxyStringSOCKS5FromLease(lease decodo.Lease) (string, error)

ProxyStringSOCKS5FromLease converts an HTTP proxy URL stored in a lease to SOCKS5 format.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL