env

package
v2.4.1-scale-20230818 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config = Var("CL_CONFIG")

	// LOOPP commands and vars
	MedianPluginCmd   = Var("CL_MEDIAN_CMD")
	SolanaPluginCmd   = Var("CL_SOLANA_CMD")
	StarknetPluginCmd = Var("CL_STARKNET_CMD")
	// PrometheusDiscoveryHostName is the externally accessible hostname
	// published by the node in the `/discovery` endpoint. Generally, it is expected to match
	// the public hostname of node.
	// Cluster step up like kubernetes may need to set this explicitly to ensure
	// that Prometheus can discovery LOOPps.
	// In house we observed that the resolved value of os.Hostname was not accessible to
	// outside of the given pod
	PrometheusDiscoveryHostName = Var("CL_PROMETHEUS_DISCOVERY_HOSTNAME")
	// EnvLooopHostName is the hostname used for HTTP communication between the
	// node and LOOPps. In most cases this does not need to be set explicitly.
	LOOPPHostName = Var("CL_LOOPP_HOSTNAME")
	// Work around for Solana LOOPPs configured with zero values.
	MinOCR2MaxDurationQuery = Var("CL_MIN_OCR2_MAX_DURATION_QUERY")

	DatabaseAllowSimplePasswords = Var("CL_DATABASE_ALLOW_SIMPLE_PASSWORDS")
	DatabaseURL                  = Secret("CL_DATABASE_URL")
	DatabaseBackupURL            = Secret("CL_DATABASE_BACKUP_URL")
	ExplorerAccessKey            = Secret("CL_EXPLORER_ACCESS_KEY")
	ExplorerSecret               = Secret("CL_EXPLORER_SECRET")
	PasswordKeystore             = Secret("CL_PASSWORD_KEYSTORE")
	PasswordVRF                  = Secret("CL_PASSWORD_VRF")
	PyroscopeAuthToken           = Secret("CL_PYROSCOPE_AUTH_TOKEN")
	PrometheusAuthToken          = Secret("CL_PROMETHEUS_AUTH_TOKEN")
	ThresholdKeyShare            = Secret("CL_THRESHOLD_KEY_SHARE")
)

Functions

This section is empty.

Types

type Secret

type Secret string

func (Secret) Get

func (e Secret) Get() models.Secret

type Var

type Var string

func (Var) Get

func (e Var) Get() string

func (Var) IsTrue

func (e Var) IsTrue() bool

func (Var) Lookup

func (e Var) Lookup() (string, bool)

Lookup wraps os.LookupEnv

Jump to

Keyboard shortcuts

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