2023-11-25 14:02:30 +08:00
|
|
|
package cnf
|
|
|
|
|
|
|
|
type Cfg struct {
|
|
|
|
Settings Settings `yaml:"Settings"`
|
|
|
|
MySQL MySQL `yaml:"MySQL"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Settings struct {
|
|
|
|
ListenPort string `yaml:"ListenPort"`
|
|
|
|
HookScript string `yaml:"HookScript"`
|
2023-12-11 10:30:43 +08:00
|
|
|
HostMode int `yaml:"HostMode"`
|
2024-08-13 09:06:34 +08:00
|
|
|
MustPost bool `yaml:"MustPost"`
|
2023-11-25 14:02:30 +08:00
|
|
|
ParamCheck bool `yaml:"ParamCheck"`
|
|
|
|
LogRequest bool `yaml:"LogRequest"`
|
|
|
|
LogResponse bool `yaml:"LogResponse"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MySQL struct {
|
2024-11-18 20:09:58 +08:00
|
|
|
Server string `yaml:"Server"`
|
|
|
|
Port string `yaml:"Port"`
|
|
|
|
Database string `yaml:"Database"`
|
|
|
|
User string `yaml:"User"`
|
|
|
|
Password string `yaml:"Password"`
|
|
|
|
IssuesTable string `yaml:"IssuesTable"`
|
|
|
|
IssuesView string `yaml:"IssuesView"`
|
|
|
|
OfflineView string `yaml:"OfflineView"`
|
|
|
|
StorageTable string `yaml:"StorageTable"`
|
|
|
|
GetFailListSQL string `yaml:"GetFailListSQL"`
|
2023-11-25 14:02:30 +08:00
|
|
|
}
|