36 lines
1.1 KiB
Go
36 lines
1.1 KiB
Go
package cnf
|
|
|
|
type Cfg struct {
|
|
Settings Settings `yaml:"Settings"`
|
|
MySQL MySQL `yaml:"MySQL"`
|
|
}
|
|
|
|
type Param2Column struct {
|
|
Param string `yaml:"Param"`
|
|
Column string `yaml:"Column"`
|
|
}
|
|
|
|
type Settings struct {
|
|
ListenPort string `yaml:"ListenPort"`
|
|
HookScript string `yaml:"HookScript"`
|
|
HostMode int `yaml:"HostMode"`
|
|
MustPost bool `yaml:"MustPost"`
|
|
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"`
|
|
IssuesTable string `yaml:"IssuesTable"`
|
|
IssuesView string `yaml:"IssuesView"`
|
|
OfflineView string `yaml:"OfflineView"`
|
|
StorageTable string `yaml:"StorageTable"`
|
|
GetFailListSQL string `yaml:"GetFailListSQL"`
|
|
GetFailListParams []Param2Column `yaml:"GetFailListParams"`
|
|
}
|