mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-30 01:00:27 +08:00
19 lines
552 B
Go
19 lines
552 B
Go
package serverconfigs
|
|
|
|
type HTTPCacheRef struct {
|
|
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"` // 条件
|
|
}
|
|
|
|
func (this *HTTPCacheRef) Init() error {
|
|
if this.Cond != nil {
|
|
err := this.Cond.Init()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|