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

Method FindWAF

internal/waf/waf_manager.go:46–51  ·  view source on GitHub ↗

FindWAF 查找WAF

(policyId int64)

Source from the content-addressed store, hash-verified

44
45// FindWAF 查找WAF
46func (this *WAFManager) FindWAF(policyId int64) *WAF {
47 this.locker.RLock()
48 var w = this.mapping[policyId]
49 this.locker.RUnlock()
50 return w
51}
52
53// ConvertWAF 将Policy转换为WAF
54func (this *WAFManager) ConvertWAF(policy *firewallconfigs.HTTPFirewallPolicy) (*WAF, error) {

Callers 3

checkWAFRequestMethod · 0.80
checkWAFResponseMethod · 0.80
RunMethod · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected