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

Method AddAction

internal/waf/rule_set.go:119–127  ·  view source on GitHub ↗

AddAction 添加动作

(code string, options maps.Map)

Source from the content-addressed store, hash-verified

117
118// AddAction 添加动作
119func (this *RuleSet) AddAction(code string, options maps.Map) {
120 if options == nil {
121 options = maps.Map{}
122 }
123 this.Actions = append(this.Actions, &ActionConfig{
124 Code: code,
125 Options: options,
126 })
127}
128
129// HasSpecialActions 除了Allow之外是否还有别的动作
130func (this *RuleSet) HasSpecialActions() bool {

Callers 1

InitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected