23 lines
541 B
Go
23 lines
541 B
Go
package cnf
|
|
|
|
type Cfg struct {
|
|
Settings Settings `yaml:"Settings"`
|
|
MySQL MySQL `yaml:"MySQL"`
|
|
}
|
|
|
|
type Settings struct {
|
|
ListenPort string `yaml:"ListenPort"`
|
|
HookScript string `yaml:"HookScript"`
|
|
ParamCheck bool `yaml:"ParamCheck"`
|
|
LogRequest bool `yaml:"LogRequest"`
|
|
LogResponse bool `yaml:"LogResponse"`
|
|
}
|
|
|
|
type MySQL struct {
|
|
Server string `yaml:"Server"`
|
|
Port string `yaml:"Port"`
|
|
Database string `yaml:"Database"`
|
|
User string `yaml:"User"`
|
|
Password string `yaml:"Password"`
|
|
}
|