实现缓存策略部分管理功能

This commit is contained in:
GoEdgeLab
2020-10-02 17:22:46 +08:00
parent ba705b878f
commit da9ef1e5e7
15 changed files with 2474 additions and 421 deletions

View File

@@ -78,6 +78,7 @@ func (this *NodeConfig) AvailableGroups() []*serverconfigs.ServerGroup {
}
func (this *NodeConfig) Init() error {
// servers
for _, server := range this.Servers {
err := server.Init()
if err != nil {
@@ -85,6 +86,14 @@ func (this *NodeConfig) Init() error {
}
}
// global config
if this.GlobalConfig != nil {
err := this.GlobalConfig.Init()
if err != nil {
return err
}
}
return nil
}