config

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetEnvConfig

func SetEnvConfig()

Types

type Configuration

type Configuration struct {
	//
	AppEnv      string `env:"APP_ENV"`
	LogLevel    string `env:"LOG_LEVEL"`
	RunningMode string `env:"RUNNING_MODE"` //fallback or main
	DBName      string `env:"DB_NAME"`
	DBUsername  string `env:"DB_USERNAME"`
	DBPassword  string `env:"DB_PASSWORD"`
	DBHost      string `env:"DB_HOST"`
	DBPort      string `env:"DB_PORT"`
}
var CONFIGURATION *Configuration

Jump to

Keyboard shortcuts

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