mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-02-03 01:25:53 +08:00
增加多个服务带宽、流量统计接口
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user