Initial commit (code only without large binaries)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
||||
// HTTPFirewallCheckpointDefinition check point definition
|
||||
type HTTPFirewallCheckpointDefinition struct {
|
||||
Name string `json:"name"` // 名称
|
||||
Description string `json:"description"` // 描述
|
||||
Prefix string `json:"prefix"` // 前缀
|
||||
IsRequest bool `json:"isRequest"` // 是否为请求
|
||||
HasParams bool `json:"hasParams"` // 是否有子参数
|
||||
Params []*KeyValue `json:"params"` // 参数
|
||||
Options []OptionInterface `json:"options"` // 选项
|
||||
IsComposed bool `json:"isComposed"` // 是否为组合的checkpoint
|
||||
Priority int `json:"priority"` // 优先级
|
||||
DataType string `json:"dataType"` // 数据类型:number, bool等
|
||||
Version string `json:"version"` // 被加入的版本号
|
||||
}
|
||||
Reference in New Issue
Block a user