constants

package
v3.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

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

func AppVersion(version string) string

AppVersion returns the full rendered version of the app (to be used in request headers).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL