env

package
v0.0.0-...-0b70e59 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrometheusEndpointKey     Key = "BOILER_PROMETHEUS_ENDPOINT"
	PrometheusEndpointDefault Env = "localhost:9090"

	GrafanaEndpointKey     Key = "BOILER_GRAFANA_ENDPOINT"
	GrafanaEndpointDefault Env = "localhost:3000"

	JaegerEndpointKey     Key = "BOILER_JAEGER_ENDPOINT"
	JaegerEndpointDefault Env = "localhost:4318"

	EtcdEndpointsKey     Key = "BOILER_ETCD_ENDPOINTS"
	EtcdEndpointsDefault Env = "localhost:2379"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env string
const (
	ProductionEnv Env = "PRODUCTION"
	StagingEnv    Env = "STAGING"
	LocalEnv      Env = "LOCAL"
)

func AppEnv

func AppEnv() Env

func Get

func Get(key Key) Env

func (Env) OrDefault

func (e Env) OrDefault(env Env) Env

func (Env) String

func (e Env) String() string

type Key

type Key string
const (
	AppEnvKey Key = "BOILER_APP_ENV"
)

func (Key) String

func (k Key) String() string

Jump to

Keyboard shortcuts

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