FindWAF 查找WAF
(policyId int64)
| 44 | |
| 45 | // FindWAF 查找WAF |
| 46 | func (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 |
| 54 | func (this *WAFManager) ConvertWAF(policy *firewallconfigs.HTTPFirewallPolicy) (*WAF, error) { |
no test coverage detected