Files
EdgeCommon/pkg/serverconfigs/http_cache_ref.go

19 lines
552 B
Go
Raw Normal View History

2020-09-20 16:27:59 +08:00
package serverconfigs
type HTTPCacheRef struct {
2020-10-02 17:22:46 +08:00
IsPrior bool `yaml:"isPrior" json:"isPrior"` // 是否覆盖
IsOn bool `yaml:"isOn" json:"isOn"` // 是否开启
CachePolicyId int64 `yaml:"cachePolicyId" json:"cachePolicyId"` // 缓存策略ID
Cond *HTTPCacheCond `yaml:"cond" json:"cond"` // 条件
2020-09-20 16:27:59 +08:00
}
2020-09-26 08:07:24 +08:00
func (this *HTTPCacheRef) Init() error {
2020-10-02 17:22:46 +08:00
if this.Cond != nil {
err := this.Cond.Init()
if err != nil {
return err
}
}
2020-09-26 08:07:24 +08:00
return nil
}