config

package
v0.0.0-...-8e6b538 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// EnvConfigPath represents the environment variable name which
	// should be read in case environment file needs to be read from some
	// user-defined location
	EnvConfigPath = "FIBER_PONGO2_PKGER_CONFIG_ENV_PATH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {

	// Address to run the webserver on, defaults to :3030
	Address string `envconfig:"ADDRESS" default:"0.0.0.0:3030"`

	// ProxyURL in case we need to support the application on a different prefix
	ProxyURL string `envconfig:"PROXY_URL" default:""`
}

Config is the base struct which contains all the configuration for the application

func LoadEnv

func LoadEnv() (Config, error)

LoadEnv will try to load .env file from the directory where it is currently running from, unless explicitly given

Jump to

Keyboard shortcuts

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