mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-01-01 16:36:38 +08:00
27 lines
786 B
Go
27 lines
786 B
Go
package serverconfigs
|
|
|
|
// 服务相关的全局设置
|
|
type GlobalConfig struct {
|
|
// HTTP & HTTPS相关配置
|
|
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"`
|
|
|
|
// IP库相关配置
|
|
IPLibrary struct {
|
|
Code string `yaml:"code" json:"code"` // 当前使用的IP库代号
|
|
} `yaml:"ipLibrary" json:"ipLibrary"`
|
|
}
|
|
|
|
func (this *GlobalConfig) Init() error {
|
|
return nil
|
|
}
|