package
Version:
v1.0.0-alpha.8
Opens a new window with list of versions in this module.
Published: Jul 19, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
Name string `env-required:"false" yaml:"name" env:"APP_NAME"`
Repo string `env-required:"false" yaml:"repo" env:"APP_REPO"`
Version string `env-required:"false"`
}
App -.
type Config struct {
App `yaml:"app"`
HTTP `yaml:"http"`
Log `yaml:"logger"`
DB `yaml:"postgres"`
}
Config -.
NewConfig returns app config.
type DB struct {
PoolMax int `env-required:"false" yaml:"pool_max" env:"DB_POOL_MAX"`
URL string `env:"DB_URL"`
}
DB -.
type HTTP struct {
Port string `env-required:"false" yaml:"port" env:"HTTP_PORT"`
AllowedOrigins []string `env-required:"false" yaml:"allowed_origins" env:"HTTP_ALLOWED_ORIGINS"`
}
HTTP -.
type Log struct {
Level string `env-required:"false" yaml:"log_level" env:"LOG_LEVEL"`
}
Log -.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.