Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
HTTP HTTPConfig `envPrefix:"HTTP_"`
Seed SeedConfig `envPrefix:"SEED_"`
DB DatabaseConfig `envPrefix:"DB_"`
}
Config is loaded before DI construction and server startup.
func (Config) ValidateEnvironment ¶
func (c Config) ValidateEnvironment(env pfw.Environment) error
type DatabaseConfig ¶
type HTTPConfig ¶
type SeedConfig ¶
type SeedConfig struct {
UserName string `env:"USER_NAME" envDefault:"Ada"`
}
Click to show internal directories.
Click to hide internal directories.