From 7be6dcaaa313490d4e2f213ce5cc9dce6f730f80 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Sat, 27 Feb 2016 15:19:13 -0500 Subject: [PATCH] http: update config to snake_case --- server/http/config.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/http/config.go b/server/http/config.go index afad77b..83736ec 100644 --- a/server/http/config.go +++ b/server/http/config.go @@ -12,12 +12,12 @@ import ( type httpConfig struct { Addr string `yaml:"addr"` - RequestTimeout time.Duration `yaml:"requestTimeout"` - ReadTimeout time.Duration `yaml:"readTimeout"` - WriteTimeout time.Duration `yaml:"writeTimeout"` - AllowIPSpoofing bool `yaml:"allowIPSpoofing"` - DualStackedPeers bool `yaml:"dualStackedPeers"` - RealIPHeader string `yaml:"realIPHeader"` + RequestTimeout time.Duration `yaml:"request_timeout"` + ReadTimeout time.Duration `yaml:"read_timeout"` + WriteTimeout time.Duration `yaml:"write_timeout"` + AllowIPSpoofing bool `yaml:"allow_ip_spoofing"` + DualStackedPeers bool `yaml:"dual_stacked_peers"` + RealIPHeader string `yaml:"real_ip_header"` } func newHTTPConfig(srvcfg interface{}) (*httpConfig, error) {