多处增加是否独立配置选项

This commit is contained in:
GoEdgeLab
2020-09-23 18:43:50 +08:00
parent f3cb3e3880
commit 2bdb5c232a
17 changed files with 416 additions and 296 deletions

View File

@@ -0,0 +1,7 @@
package shared
type HTTPHeaderPolicyRef struct {
IsPrior bool `yaml:"isPrior" json:"isPrior"`
IsOn bool `yaml:"isOn" json:"isOn"`
HeaderPolicyId int64 `yaml:"headerPolicyId" json:"headerPolicyId"`
}

View File

@@ -2,8 +2,10 @@ package shared
// HeaderList定义
type HTTPHeaderPolicy struct {
Id int64 `yaml:"id" json:"id"`
IsOn bool `yaml:"isOn" json:"isOn"` // TODO
Id int64 `yaml:"id" json:"id"` // ID
Name string `yaml:"name" json:"name"` // 名称 TODO
IsOn bool `yaml:"isOn" json:"isOn"` // 是否启用 TODO
Description string `yaml:"description" json:"description"` // 描述 TODO
AddHeaders []*HTTPHeaderConfig `yaml:"addHeaders" json:"addHeaders"` // TODO
AddTrailers []*HTTPHeaderConfig `yaml:"addTrailers" json:"addTrailers"` // TODO