config

package
v0.0.0-...-37d2846 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbConfig

type DbConfig struct {
	User     string `env:"DB_USER,default=postgres"`
	Port     string `env:"DB_PORT,default=5432"`
	Password string `env:"DB_PASSWORD,default=postgres"`
	Host     string `env:"DB_HOST,default=localhost"`
	Name     string `env:"DB_NAME,default=postgres"`
}

type Environment

type Environment struct {
	Port     int  `env:"PORT,default=8000"`
	Debug    bool `env:"DEBUG,default=false"`
	DbConfig DbConfig
	Extras   env.EnvSet
}
var Env Environment

func GetEnv

func GetEnv() Environment

Jump to

Keyboard shortcuts

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