envs

package
v0.0.0-...-b53ed2c Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envs

type Envs struct {
	// Application
	Environment string `cfg:"ENVIRONMENT" cfgRequired:"true" cfgDefault:"local"`
	Service     string `cfg:"SERVICE" cfgRequired:"true" cfgDefault:"one-traive-api-command"`
	Version     string `cfg:"VERSION" cfgRequired:"true" cfgDefault:"local-snapshot"`
	HTTPHost    string `cfg:"HTTP_HOST" cfgRequired:"true" cfgDefault:"localhost"`
	HTTPPort    string `cfg:"HTTP_PORT" cfgRequired:"true" cfgDefault:"8080"`
	DebugPprof  bool   `cfg:"DEBUG_PPROF" cfgDefault:"true"`
	// Database
	MasterDatabaseURL      string `cfg:"POSTGRES_DATABASE_PRIMARY_URL" cfgRequired:"true"`
	ReadReplicaDatabaseURL string `cfg:"POSTGRES_DATABASE_REPLICA_URL" cfgRequired:"true"`
	// Open Telemetry
	OtelCollectorHost string `cfg:"OTEL_COLLECTOR_HOST" cfgRequired:"true"`
}

Envs this object keep the all command environment variables.

func New

func New() (Envs, error)

Jump to

Keyboard shortcuts

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