package
Version:
v0.0.0-...-74cc791
Opens a new window with list of versions in this module.
Published: Jun 3, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
LogLevel string `env:"LOG_LEVEL"`
Environment string `env:"ENVIRONMENT"`
ServiceName string `env:"SERVICE_NAME"`
HTTPPort string `env:"HTTP_PORT,default=4012"`
DB *DB
}
type DB struct {
Host string `env:"DB_HOST"`
Name string `env:"DB_NAME"`
User string `env:"DB_USER"`
Password string `env:"DB_PASSWORD" json:"-"`
Port string `env:"DB_PORT"`
ConnectionURL string `env:"CONNECTION_URL" json:"-"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.