env

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 0 Imported by: 0

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