增加多个服务带宽、流量统计接口

This commit is contained in:
GoEdgeLab
2022-10-03 19:26:47 +08:00
parent 5905d198bf
commit bbf9eeb025
12 changed files with 5800 additions and 4768 deletions

View File

@@ -49,6 +49,14 @@ func (this *ServerNameConfig) FirstName() string {
return ""
}
// Count 计算域名数量
func (this *ServerNameConfig) Count() int {
if len(this.SubNames) > 0 {
return len(this.SubNames)
}
return 1
}
// NormalizeServerNames 格式化一组域名
func NormalizeServerNames(serverNames []*ServerNameConfig) {
for _, serverName := range serverNames {