mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:40:25 +08:00
21 lines
686 B
Go
21 lines
686 B
Go
package firewallconfigs
|
|
|
|
import "reflect"
|
|
|
|
type HTTPFirewallActionCategory = string
|
|
|
|
const (
|
|
HTTPFirewallActionCategoryBlock HTTPFirewallActionCategory = "block"
|
|
HTTPFirewallActionCategoryAllow HTTPFirewallActionCategory = "allow"
|
|
HTTPFirewallActionCategoryVerify HTTPFirewallActionCategory = "verify"
|
|
)
|
|
|
|
// HTTPFirewallActionDefinition action definition
|
|
type HTTPFirewallActionDefinition struct {
|
|
Name string `json:"name"`
|
|
Code HTTPFirewallActionString `json:"code"`
|
|
Description string `json:"description"`
|
|
Type reflect.Type `json:"type"`
|
|
Category HTTPFirewallActionCategory `json:"category"`
|
|
}
|