modulepackage
0.0.0-20210803125501-5af7f744b99d
Repository: https://github.com/b97tsk/proxy.git
Documentation: pkg.go.dev
# README
proxy
A Go library based on golang.org/x/net/proxy.
# Packages
Package loadbalance provides load balancing over Dialers.
# Functions
Dial works like DialContext on Dialer with a fallback in case provided Dialer is not a ContextDialer.
FromEnvironment returns the dialer specified by the proxy-related variables in the environment and makes underlying connections directly.
FromEnvironmentUsing returns the dialer specify by the proxy-related variables in the environment and makes underlying connections using the provided forwarding Dialer (for instance, a *net.Dialer with desired configuration).
FromURL returns a Dialer given a URL specification and an underlying Dialer for it to make network requests.
RegisterDialerType takes a URL scheme and a function to generate Dialers from a URL with that scheme and a forwarding Dialer.
# Variables
Direct implements Dialer by making network connections directly using net.Dial or net.DialContext.
# Interfaces
A ContextDialer dials using a context.
A Dialer is a means to establish a connection.