package
Version:
v1.0.8
Opens a new window with list of versions in this module.
Published: Aug 30, 2021
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 2
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"`
HTTP `yaml:"http"`
Log `yaml:"logger"`
PG `yaml:"postgres"`
RMQ `yaml:"rabbitmq"`
}
type HTTP struct {
Port string `env-required:"true" yaml:"port" env:"HTTP_PORT"`
}
type Log struct {
ZapLevel string `env-required:"true" yaml:"zap_level" env:"LOG_ZAP_LEVEL"`
}
type PG struct {
PoolMax int `env-required:"true" yaml:"pool_max" env:"PG_POOL_MAX"`
URL string `env-required:"true" env:"PG_URL"`
}
type RMQ struct {
ServerExchange string `env-required:"true" yaml:"rpc_server_exchange" env:"RMQ_RPC_SERVER"`
ClientExchange string `env-required:"true" yaml:"rpc_client_exchange" env:"RMQ_RPC_CLIENT"`
URL string `env-required:"true" env:"RMQ_URL"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.