mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 12:20:27 +08:00
19 lines
387 B
Go
19 lines
387 B
Go
package serverconfigs
|
|
|
|
type HTTPCacheConfig struct {
|
|
IsPrior bool `yaml:"isPrior" json:"isPrior"`
|
|
IsOn bool `yaml:"isOn" json:"isOn"`
|
|
|
|
CacheRefs []*HTTPCacheRef `yaml:"cacheRefs" json:"cacheRefs"` // 缓存配置
|
|
}
|
|
|
|
func (this *HTTPCacheConfig) Init() error {
|
|
for _, cacheRef := range this.CacheRefs {
|
|
err := cacheRef.Init()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|