Fix configure file parse

This commit is contained in:
Ye Yin 2016-10-12 12:26:25 +08:00
parent 9c9b4a5002
commit 3932ca8971

View file

@ -23,7 +23,7 @@ type hookConfig struct {
// ConfigFile represents a namespaced YAML configation file. // ConfigFile represents a namespaced YAML configation file.
type ConfigFile struct { type ConfigFile struct {
MainConfigBlock struct { MainConfigBlock struct {
middleware.Config middleware.Config `yaml:",inline"`
PrometheusAddr string `yaml:"prometheus_addr"` PrometheusAddr string `yaml:"prometheus_addr"`
HTTPConfig httpfrontend.Config `yaml:"http"` HTTPConfig httpfrontend.Config `yaml:"http"`
UDPConfig udpfrontend.Config `yaml:"udp"` UDPConfig udpfrontend.Config `yaml:"udp"`