env

package
v0.0.0-...-08b82ef Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AllowedSitesFile string `env:"ALLOWED_SITES_FILE" envDefault:"allowed-sites.txt"`
	AppPort          string `env:"PORT" envDefault:"8090"`
}

Config represents the application configuration state loaded from env vars.

func LoadConfig

func LoadConfig() (Config, error)

LoadConfig loads the config from the environment if necessary and returns a copy.

Jump to

Keyboard shortcuts

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