package
2.4.88+incompatible
Repository: https://github.com/getlantern/flashlight.git
Documentation: pkg.go.dev
# Functions
AddCommonHeaders sets standard http headers on a request bound for an internal service, representing auth and other configuration metadata.
AddCommonHeadersWithOptions sets standard http headers on a request bound for an internal service, representing auth and other configuration metadata.
AddCommonNonUserHeaders adds all common headers that are not user or device specific.
CORSMiddleware is HTTP middleware used to process CORS requests on localhost.
ForceAds indicates whether adswapping should be forced to 100%.
ForceStaging forces staging mode.
InDevelopment indicates whether this built was built in development.
NewUserConfigData constucts a new UserConfigData (common.UserConfig) with the given options.
ProcessCORS processes CORS requests on localhost.
# Constants
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
The default name for this app (used if no client-supplied name is passed at initialization).
DefaultPackageVersion is the default version of the package for auto-update purposes.
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
ProAvailable specifies whether the user can purchase pro with this version.
No description provided by the author
ProxiesStagingURL is the URL for fetching the per user proxy config in a staging environment.
ProxiesURL is the URL for fetching the per user proxy config.
No description provided by the author
No description provided by the author
SentryDSN is Sentry's project ID thing.
No description provided by the author
Sentry Configurations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TrackingID is the Google Analytics tracking ID.
UpdateServerURL is the URL of the update server.
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
The actual date and time the binary was built.
CompileTimePackageVersion is set at compile-time for production builds.
Set by the linker using -ldflags in the project's Makefile.
No description provided by the author
No description provided by the author
GlobalStagingURL is the URL for fetching the global config in a staging environment.
GlobalURL URL for fetching the global config.
PackageVersion is the version of the package to use depending on if we're in development, production, etc.
No description provided by the author
The revision date and time that is associated with the version string.
No description provided by the author
StagingMode if true, run Lantern against our staging infrastructure.
Version is the version of Lantern we're running.
# Structs
NullAuthConfig is useful for testing.
NullUserConfig is useful for testing.
an implementation of common.UserConfig.
# Interfaces
AuthConfig retrieves any custom info for interacting with internal services.
UserConfig retrieves auth and other metadata passed to internal services.
# Type aliases
This lets you turn an request handler into an http.RoundTripper.