env

package
v0.0.0-...-86e4b03 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PgBackup          = "PG_BACKUP"
	PgData            = "PGDATA"
	PgBinDir          = "PG_BINDIR"
	PgHome            = "PG_HOME"
	PgPasswordFile    = "PG_PASSWORD_FILE"
	PgReplicationUser = "PG_REPLICATION_USER"
	PgUser            = "PG_USER"

	HttpPort        = "PGCP_HTTP_PORT"
	ListenAddress   = "PGCP_LISTEN_ADDR"
	LogLevel        = "PGCP_LOG_LEVEL"
	MetricsEnabled  = "PGCP_METRICS_ENABLED"
	ProfilerEnabled = "PGCP_PROFILER_ENABLED"

	StorageType      = "PGCP_STORAGE_TYPE"
	StorageBootstrap = "PGCP_STORAGE_BOOTSTRAP"
	StorageTtl       = "PGCP_STORAGE_TTL"
)

Variables

This section is empty.

Functions

func Get

func Get(k string) (v string, err error)

Get returns the environment variable specified by the key k. If the variable is undefined it returns an error.

func GetOrDefault

func GetOrDefault(k string, d string) string

GetOrDefault returns the environment variable specified by the key k, or the default value d.

Types

This section is empty.

Jump to

Keyboard shortcuts

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