apiserver/cnf/cnf.go

26 lines
686 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"`
IssueTable string `yaml:"IssueTable"`
OfflineTable string `yaml:"OfflineTable"`
}