Documentation
¶
Index ¶
Constants ¶
View Source
const (
ModTag = "mod_tag"
)
Variables ¶
This section is empty.
Functions ¶
func TagRuleCheck ¶
func TagRuleCheck(tagRuleFile *TagRuleFile) error
Types ¶
type ConfModTag ¶
type ConfModTag struct { Basic struct { DataPath string // path of rule data } Log struct { OpenDebug bool } }
func (*ConfModTag) Check ¶
func (cfg *ConfModTag) Check(confRoot string) error
type ModuleTag ¶
type ModuleTag struct {
// contains filtered or unexported fields
}
func NewModuleTag ¶
func NewModuleTag() *ModuleTag
func (*ModuleTag) Init ¶
func (m *ModuleTag) Init(cbs *bfe_module.BfeCallbacks, whs *web_monitor.WebHandlers, cr string) error
type ProductRuleList ¶
type ProductRuleList map[string]TagRuleList // product => list of tag rule list
type ProductRuleRawList ¶
type ProductRuleRawList map[string]RuleRawList // product => raw rule list
type RuleRawList ¶
type RuleRawList []TagRuleRaw
type TagRuleConf ¶
type TagRuleConf struct { Version string // version Config ProductRuleList // product -> rule list }
func TagRuleFileLoad ¶
func TagRuleFileLoad(filename string) (*TagRuleConf, error)
type TagRuleFile ¶
type TagRuleFile struct { Version string // version Config ProductRuleRawList // product -> raw rule list }
type TagRuleList ¶
type TagRuleList []TagRule
type TagRuleRaw ¶
type TagRuleTable ¶
type TagRuleTable struct {
// contains filtered or unexported fields
}
func NewTagRuleTable ¶
func NewTagRuleTable() *TagRuleTable
func (*TagRuleTable) Search ¶
func (t *TagRuleTable) Search(product string) (TagRuleList, bool)
func (*TagRuleTable) Update ¶
func (t *TagRuleTable) Update(ruleConf *TagRuleConf)
Click to show internal directories.
Click to hide internal directories.