mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-27 14:30:24 +08:00
20 lines
561 B
Go
20 lines
561 B
Go
|
|
package serverconfigs
|
||
|
|
|
||
|
|
// 全局设置
|
||
|
|
type GlobalConfig struct {
|
||
|
|
HTTPAll struct {
|
||
|
|
MatchDomainStrictly bool `yaml:"matchDomainStrictly" json:"matchDomainStrictly"`
|
||
|
|
} `yaml:"httpAll" json:"httpAll"`
|
||
|
|
HTTP struct{} `yaml:"http" json:"http"`
|
||
|
|
HTTPS struct{} `yaml:"https" json:"https"`
|
||
|
|
TCPAll struct{} `yaml:"tcpAll" json:"tcpAll"`
|
||
|
|
TCP struct{} `yaml:"tcp" json:"tcp"`
|
||
|
|
TLS struct{} `yaml:"tls" json:"tls"`
|
||
|
|
Unix struct{} `yaml:"unix" json:"unix"`
|
||
|
|
UDP struct{} `yaml:"udp" json:"udp"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (this *GlobalConfig) Init() error {
|
||
|
|
return nil
|
||
|
|
}
|