2020-10-08 11:11:29 +08:00
|
|
|
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 {
|
2020-11-18 19:48:27 +08:00
|
|
|
Name string `json:"name"` // 名称
|
|
|
|
|
Description string `json:"description"` // 描述
|
|
|
|
|
Prefix string `json:"prefix"` // 前缀
|
|
|
|
|
IsRequest bool `json:"isRequest"` // 是否为请求
|
2020-11-21 20:44:00 +08:00
|
|
|
HasParams bool `json:"hasParams"` // 是否有子参数
|
2020-11-18 19:48:27 +08:00
|
|
|
Params []*KeyValue `json:"params"` // 参数
|
|
|
|
|
Options []OptionInterface `json:"options"` // 选项
|
|
|
|
|
IsComposed bool `json:"isComposed"` // 是否为组合的checkpoint
|
2020-10-08 11:11:29 +08:00
|
|
|
}
|