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 ¶
LoadConfig loads the config from the environment if necessary and returns a copy.
Click to show internal directories.
Click to hide internal directories.