mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 05:00:25 +08:00
29 lines
643 B
Go
29 lines
643 B
Go
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
|
//go:build !plus
|
|
|
|
package nodelogutils
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeCommon/pkg/langs"
|
|
"github.com/TeaOSLab/EdgeCommon/pkg/langs/codes"
|
|
"github.com/iwind/TeaGo/maps"
|
|
)
|
|
|
|
// FindCommonTags 查找常用的标签
|
|
func FindNodeCommonTags(langCode langs.LangCode) []maps.Map {
|
|
return []maps.Map{
|
|
{
|
|
"name": langs.Message(langCode, codes.Log_TagListener),
|
|
"code": "LISTENER",
|
|
},
|
|
{
|
|
"name": langs.Message(langCode, codes.Log_TagWAF),
|
|
"code": "WAF",
|
|
},
|
|
{
|
|
"name": langs.Message(langCode, codes.Log_TagAccessLog),
|
|
"code": "ACCESS_LOG",
|
|
},
|
|
}
|
|
}
|