mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-16 05:18:09 -07:00
http: update config to snake_case
This commit is contained in:
@@ -12,12 +12,12 @@ import (
|
|||||||
|
|
||||||
type httpConfig struct {
|
type httpConfig struct {
|
||||||
Addr string `yaml:"addr"`
|
Addr string `yaml:"addr"`
|
||||||
RequestTimeout time.Duration `yaml:"requestTimeout"`
|
RequestTimeout time.Duration `yaml:"request_timeout"`
|
||||||
ReadTimeout time.Duration `yaml:"readTimeout"`
|
ReadTimeout time.Duration `yaml:"read_timeout"`
|
||||||
WriteTimeout time.Duration `yaml:"writeTimeout"`
|
WriteTimeout time.Duration `yaml:"write_timeout"`
|
||||||
AllowIPSpoofing bool `yaml:"allowIPSpoofing"`
|
AllowIPSpoofing bool `yaml:"allow_ip_spoofing"`
|
||||||
DualStackedPeers bool `yaml:"dualStackedPeers"`
|
DualStackedPeers bool `yaml:"dual_stacked_peers"`
|
||||||
RealIPHeader string `yaml:"realIPHeader"`
|
RealIPHeader string `yaml:"real_ip_header"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func newHTTPConfig(srvcfg interface{}) (*httpConfig, error) {
|
func newHTTPConfig(srvcfg interface{}) (*httpConfig, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user