Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Host string `env:"RABBIT_HOST,default:localhost"` Port string `env:"RABBIT_PORT"` User string `env:"RABBIT_USER"` Password string `env:"RABBIT_PASSWORD"` VHost string `env:"RABBIT_VHOST"` }
Config ... rabbit配置
func (*Config) ParseFromEnvironment ¶
ParseFromEnvironment ... 从环境变量中读取配置值
Click to show internal directories.
Click to hide internal directories.