package
Version:
v0.0.0-...-d85361f
Opens a new window with list of versions in this module.
Published: Apr 2, 2023
License: MIT
Opens a new window with license information.
Imports: 2
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:"true" yaml:"name" env:"APP_NAME"`
Version string `env-required:"true" yaml:"version" env:"APP_VERSION"`
}
type Config struct {
App `yaml:"app"`
GRPC `yaml:"grpc"`
Log `yaml:"logger"`
DB `yaml:"database"`
}
Config -.
NewConfig returns app config.
type DB struct {
PoolMax int `env-required:"true" yaml:"pool_max" env:"PG_POOL_MAX"`
URL string `env-required:"true" yaml:"url" env:"PG_URL"`
}
type GRPC struct {
Port string `env-required:"true" yaml:"port" env:"GRPC_PORT"`
}
type Log struct {
Level string `env-required:"true" yaml:"level" env:"LOG_LEVEL"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.