env

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bag

type Bag struct {
	// ServerShutdownTimeout is a duration in seconds to graceful shutdown internal
	// processes when the app has initiated a shutdown.
	ServerShutdownTimeout int `envconfig:"SERVER_SHUTDOWN_TIMEOUT" default:"5"`
	// HTTPTraceHeader is a header that provides a unique per-request ID that will be
	// injected into all logs entries related to the same request. This is used to track
	// the a request trace within the underlying services
	HTTPTraceHeader string `envconfig:"TRACEPARENT_HEADER" default:"traceparent"`
	// SMTPAddr is the hostname:port config of the SMTP server the app forwards emails to
	SMTPAddr string `envconfig:"SMTP_ADDR" required:"true"`
	// LogLevel is the level of log generated by the app
	LogLevel string `envconfig:"LOG_LEVEL" default:"info"`
}

Bag holds all the config envvars

Jump to

Keyboard shortcuts

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