conf

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	AppEnv  string `env:"APP_ENV" envDefault:":local"`
	Address string `env:"ADDRESS" envDefault:":8080"`

	DBHost     string `env:"DB_HOST" envDefault:"emr-docker_db_1"`
	DBDriver   string `env:"DB_HOST" envDefault:"postgres"`
	DBUser     string `env:"DB_USER" envDefault:"postgres"`
	DBPassword string `env:"DB_PASSWORD" envDefault:"password"`
	DBName     string `env:"DB_NAME" envDefault:"emr"`
	DBPort     string `env:"DB_PORT" envDefault:"5432"`

	ElasticAddress string `env:"ELASTIC_ADDRESS"`
	JwtSecret      string `env:"JWT_SECRET"`
	JwtIssuer      string `env:"JWT_ISSUER"`
}

Configuration ...

func NewConfig

func NewConfig(files ...string) (*Configuration, error)

NewConfig ...

Jump to

Keyboard shortcuts

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