Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalConfig = ProtoConfig{}
GlobalConfig contains current configurations
Functions ¶
func ReadConfig ¶
func ReadConfig(configFile string)
ReadConfig reads current configurations from configFile
func WriteConfig ¶
WriteConfig write current configurations into configFile
Types ¶
type ProtoConfig ¶
type ProtoConfig struct { Listen string `yaml:"listen"` Fallback string `yaml:"fallback"` Debug bool `yaml:"debug"` Timeout int64 `yaml:"timeout"` TLS struct { Cert string `yaml:"cert"` Key string `yaml:"key"` } ProbeConfig struct { FakeHost string `yaml:"fake_host"` AllowHosts []string `yaml:"allow_hosts"` } Users []ProtoUser `yaml:"users"` Rules []ProtoRule `yaml:"rules"` }
ProtoConfig is Root Configuration Structure
Click to show internal directories.
Click to hide internal directories.