apiserver/cnf/cnf.go
2023-12-11 10:30:43 +08:00

24 lines
580 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"`
HostMode int `yaml:"HostMode"`
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"`
}