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

Method AddRuleGroup

internal/waf/waf.go:129–135  ·  view source on GitHub ↗
(ruleGroup *RuleGroup)

Source from the content-addressed store, hash-verified

127}
128
129func (this *WAF) AddRuleGroup(ruleGroup *RuleGroup) {
130 if ruleGroup.IsInbound {
131 this.Inbound = append(this.Inbound, ruleGroup)
132 } else {
133 this.Outbound = append(this.Outbound, ruleGroup)
134 }
135}
136
137func (this *WAF) RemoveRuleGroup(ruleGroupId int64) {
138 {

Callers 4

MergeTemplateMethod · 0.95
TestWAF_MatchRequestFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestWAF_MatchRequestFunction · 0.64