Documentation ¶
Overview ¶
Package constants contains variables that are set via ldflags during build.
Index ¶
Constants ¶
View Source
const ( // AppName is the name of the product appearing in the request headers. AppName = "bridge" // UpdateName is the name of the product appearing in the update URL. UpdateName = "bridge" // ConfigName determines the name of the location where bridge stores config/cache files. ConfigName = "bridge-v3" // KeyChainName is the name of the entry in the OS keychain. KeyChainName = "bridge-v3" // Host is the hostname of the bridge server. Host = "127.0.0.1" )
View Source
const APIHost = "https://mail-api.proton.me"
APIHost is our API address.
View Source
const UpdateCheckInterval = time.Hour
UpdateCheckInterval defines how often we check for new version.
View Source
const VendorName = "protonmail"
Variables ¶
View Source
var ( // FullAppName is the full app name (to show to the user). FullAppName = "" // Version of the build. Version = "0.0.0" // Revision is current hash of the build. Revision = "" // BuildTime stamp of the build. BuildTime = "" // BuildVersion is derived from LongVersion and BuildTime. BuildVersion = fmt.Sprintf("%v (%v) %v", Version, Revision, BuildTime) // DSNSentry client keys to be able to report crashes to Sentry. DSNSentry = "" )
Functions ¶
func AppVersion ¶
AppVersion returns the full rendered version of the app (to be used in request headers).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.