package
2.4.88+incompatible
Repository: https://github.com/getlantern/flashlight.git
Documentation: pkg.go.dev

# Packages

This program is a simple config checker tool for proxies and global configs.

# Functions

ForceCountry forces config fetches to pretend client is running in the given countryCode (e.g.
Init determines the URLs at which to fetch proxy and global config and passes those to InitWithURLs, which initializes the config setup for both fetching per-user proxies as well as the global config.
InitWithURLs initializes the config setup for both fetching per-user proxies as well as the global config given a set of URLs for fetching proxy and global config.
NewClientConfig creates a new client config with default values.
NewGlobal creates a new global config with otherwise nil values set.
ReadBootstrapSettings reads packaged settings from pre-determined paths on the various OSes.

# Constants

for historical reasons, if a provider is unspecified in a masquerade, it is treated as a cloudfront masquerade (which was once the only provider).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DefaultGlobalConfigPollInterval determines how frequently to fetch global.yaml.
DefaultProxyConfigPollInterval determines how frequently to fetch proxies.yaml.
ForceProxyConfigPollInterval overrides how frequently to fetch proxies.yaml if set (does not honor values from global.yaml).

# Structs

No description provided by the author
AdSettings are settings to use when showing ads to Android clients.
BootstrapSettings provides access to configuration embedded directly in Lantern installation packages.
ClientConfig captures configuration information for a Client.
ClientGroup represents a subgroup of Lantern clients chosen randomly or based on certain criteria on which features can be selectively turned on.
Configuration structure for direct domain fronting.
Global contains general configuration for Lantern either set globally via the cloud, in command line flags, or in local customizations during development.
No description provided by the author
No description provided by the author
Configuration structure for a particular fronting provider (cloudfront, akamai, etc).
No description provided by the author
No description provided by the author
TrafficLogOptions represents options for github.com/getlantern/trafficlog-flashlight.
Configuration struture that specifies a fronted.ResponseValidator.

# Interfaces

Config is an interface for getting proxy data saved locally, embedded in the binary, or fetched over the network.
FeatureOptions is an interface implemented by all feature options.
Fetcher is an interface for fetching config updates.

# Type aliases

Source specifies where the config is from when dispatching.