Documentation ¶
Index ¶
- Constants
- func BypassProxy() http.Handler
- func ContextualHttpTransport() *http.Transport
- func SetupHttpProxy(proxy *Proxy) func()
- func SetupHttpsProxy(proxy *Proxy) func()
- type Proxy
- func (p Proxy) Address() string
- func (p Proxy) Bucket(buckets int) int
- func (p Proxy) IP() net.IP
- func (p Proxy) InContext(ctx context.Context) context.Context
- func (p Proxy) IsTunnel() bool
- func (p Proxy) MarshalJSON() ([]byte, error)
- func (p Proxy) Port() uint16
- func (p Proxy) Proto() proto
- func (p Proxy) Scheme() string
- func (p Proxy) String() string
- func (p Proxy) URL() *url.URL
- func (p Proxy) Valid() bool
Constants ¶
View Source
const ( // don't change the order!!! HTTP proto = iota HTTPS SOCKS4 SOCKS5 )
View Source
const ProxyURL ckey = iota
Variables ¶
This section is empty.
Functions ¶
func BypassProxy ¶
func ContextualHttpTransport ¶
func SetupHttpProxy ¶ added in v0.0.4
func SetupHttpProxy(proxy *Proxy) func()
func SetupHttpsProxy ¶ added in v0.0.4
func SetupHttpsProxy(proxy *Proxy) func()
Types ¶
type Proxy ¶
type Proxy uint64
uint64 = uint32 + uint16 + uint16 (padding for alignment)
func GetProxyFromContext ¶
func HttpsProxy ¶
func Socks4Proxy ¶
func Socks5Proxy ¶
func (Proxy) MarshalJSON ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.