package
7.6.139
Repository: https://github.com/getlantern/flashlight.git
Documentation: pkg.go.dev

# Functions

New creates a new dialer that first tries to connect as quickly as possilbe while also optimizing for the fastest dialer.
NewBandit creates a new bandit given the available dialers and options with callbacks to be called when a dialer is selected, an error occurs, etc.
NewTwoPhaseDialer creates a new dialer for checking proxy connectivity.
NoDialer returns a dialer that does nothing.

# Constants

NetworkConnect is a pseudo network name to instruct the dialer to establish a CONNECT tunnel to the proxy.
NetworkPersistent is a pseudo network name to instruct the dialer to signal the proxy to establish a persistent HTTP connection over which one or more HTTP requests can be sent directly.

# Structs

BanditDialer is responsible for continually choosing the optimized dialer.
Options are the options used to create a new bandit.

# Interfaces

Dialer is the interface for creating connections destination sites.
ProxyDialer provides the ability to dial a proxy and obtain information needed to record performance data about proxies.