Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ NewRuleSet
Function
NewRuleSet
internal/waf/rule_set.go:43–47 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
41
}
42
43
func
NewRuleSet() *RuleSet {
44
return
&RuleSet{
45
IsOn: true,
46
}
47
}
48
49
func
(this *RuleSet) Init(waf *WAF) error {
50
this.hasRules = len(this.Rules) > 0
Callers
8
TestRuleSet_MatchRequest
Function · 0.92
TestRuleSet_MatchRequest2
Function · 0.92
TestRuleSet_MatchRequest_Allow
Function · 0.92
BenchmarkRuleSet_MatchRequest
Function · 0.92
BenchmarkRuleSet_MatchRequest_Regexp
Function · 0.92
TestWAF_MatchRequest
Function · 0.92
TestWAF_MatchRequest_Allow
Function · 0.92
TestWAF_MatchRequest_Allow2
Function · 0.92
Calls
no outgoing calls
Tested by
8
TestRuleSet_MatchRequest
Function · 0.74
TestRuleSet_MatchRequest2
Function · 0.74
TestRuleSet_MatchRequest_Allow
Function · 0.74
BenchmarkRuleSet_MatchRequest
Function · 0.74
BenchmarkRuleSet_MatchRequest_Regexp
Function · 0.74
TestWAF_MatchRequest
Function · 0.74
TestWAF_MatchRequest_Allow
Function · 0.74
TestWAF_MatchRequest_Allow2
Function · 0.74