MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / FindRuleSetWithCode

Method FindRuleSetWithCode

internal/waf/rule_group.go:54–64  ·  view source on GitHub ↗
(code string)

Source from the content-addressed store, hash-verified

52}
53
54func (this *RuleGroup) FindRuleSetWithCode(code string) *RuleSet {
55 if len(code) == 0 {
56 return nil
57 }
58 for _, ruleSet := range this.RuleSets {
59 if ruleSet.Code == code {
60 return ruleSet
61 }
62 }
63 return nil
64}
65
66func (this *RuleGroup) RemoveRuleSet(id int64) {
67 result := []*RuleSet{}

Callers 1

MergeTemplateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected