env

package
v0.0.0-...-b6d6674 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DBType the option is: mysql, postgres, mssql and sqlite3
	DBType string
	// DBHost var
	DBHost string
	// DBName var
	DBName string
	// DBUser var
	DBUser string
	// DBPassword var
	DBPassword string
	// DBSSLMode var
	DBSSLMode string
	// DBPath var
	DBPath string
	// DBMaxOpenConns var
	DBMaxOpenConns int
	// DBMaxIdleConns var
	DBMaxIdleConns int
	// JWTSecret var
	JWTSecret string
)

Functions

func Load

func Load(envFileName string)

Load loads environment variables that are being used across the whole app. Loading from file(s), i.e .env or dev.env

Example of a 'dev.env': PORT=8080 DSN=mongodb://localhost:27017

After `Load` the callers can get an environment variable via `os.Getenv`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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