Files
EdgeCommon/pkg/serverconfigs/firewallconfigs/http_firewall_action_definition.go

21 lines
686 B
Go
Raw Normal View History

2020-10-06 21:02:21 +08:00
package firewallconfigs
import "reflect"
2021-07-14 22:46:31 +08:00
type HTTPFirewallActionCategory = string
const (
HTTPFirewallActionCategoryBlock HTTPFirewallActionCategory = "block"
HTTPFirewallActionCategoryAllow HTTPFirewallActionCategory = "allow"
HTTPFirewallActionCategoryVerify HTTPFirewallActionCategory = "verify"
)
// HTTPFirewallActionDefinition action definition
2020-10-06 21:02:21 +08:00
type HTTPFirewallActionDefinition struct {
2021-07-14 22:46:31 +08:00
Name string `json:"name"`
Code HTTPFirewallActionString `json:"code"`
Description string `json:"description"`
Type reflect.Type `json:"type"`
Category HTTPFirewallActionCategory `json:"category"`
2020-10-06 21:02:21 +08:00
}