package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev
# Functions
FromEnvironment returns the dialer specified by the proxy related variables in the environment.
FromURL returns a Dialer given a URL specification and an underlying Dialer for it to make network requests.
NewPerHost returns a PerHost Dialer that directs connections to either defaultDialer or bypass, depending on whether the connection matches one of the configured rules.
RegisterDialerType takes a URL scheme and a function to generate Dialers from a URL with that scheme and a forwarding Dialer.
SOCKS5 returns a Dialer that makes SOCKSv5 connections to the given address with an optional username and password.
# Variables
Direct is a direct proxy: one that makes network connections directly.
# Interfaces
A Dialer is a means to establish a connection.