mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +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"`
 | 
						|
}
 |