configs

package
v0.0.0-...-4decbf1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Development = "development"
	Staging     = "stage"
	Production  = "production"
	Version     = "1.0.0"
)

Variables

View Source
var (
	ApplicationCfg *AppConfig
	PostgresCfg    *postgresConfig
)

Functions

func GetEnv

func GetEnv(key string, defaultVal string) string

func GetEnvAsInt

func GetEnvAsInt(name string, defaultVal int) int

func InitializeConfigs

func InitializeConfigs()

Types

type AppConfig

type AppConfig struct {
	Env                string
	LogLevel           string
	AppName            string
	AppVersion         string
	Port               string
	CorsTrustedOrigins []string
}

Jump to

Keyboard shortcuts

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