mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-13 20:20:28 +08:00
24 lines
584 B
Go
24 lines
584 B
Go
|
|
package firewallconfigs
|
||
|
|
|
||
|
|
type KeyValue struct {
|
||
|
|
Name string `json:"name"`
|
||
|
|
Value string `json:"value"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewKeyValue(name string, value string) *KeyValue {
|
||
|
|
return &KeyValue{
|
||
|
|
Name: name,
|
||
|
|
Value: value,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// check point definition
|
||
|
|
type HTTPFirewallCheckpointDefinition struct {
|
||
|
|
Name string `json:"name"`
|
||
|
|
Description string `json:"description"`
|
||
|
|
Prefix string `json:"prefix"`
|
||
|
|
IsRequest bool `json:"isRequest"`
|
||
|
|
Params []*KeyValue `json:"params"`
|
||
|
|
Options []OptionInterface `json:"options"`
|
||
|
|
}
|