mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-25 16:30:25 +08:00
实现WAF
This commit is contained in:
21
internal/waf/checkpoints/param_option.go
Normal file
21
internal/waf/checkpoints/param_option.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package checkpoints
|
||||
|
||||
type KeyValue struct {
|
||||
Name string `json:"name"`
|
||||
Value string `json:"value"`
|
||||
}
|
||||
|
||||
type ParamOptions struct {
|
||||
Options []*KeyValue `json:"options"`
|
||||
}
|
||||
|
||||
func NewParamOptions() *ParamOptions {
|
||||
return &ParamOptions{}
|
||||
}
|
||||
|
||||
func (this *ParamOptions) AddParam(name string, value string) {
|
||||
this.Options = append(this.Options, &KeyValue{
|
||||
Name: name,
|
||||
Value: value,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user