集群可以设置默认的WAF策略、缓存策略

This commit is contained in:
GoEdgeLab
2020-12-17 15:50:44 +08:00
parent ee549b945d
commit 41ac159e23
100 changed files with 1172 additions and 488 deletions

View File

@@ -0,0 +1,18 @@
package models
import (
"github.com/TeaOSLab/EdgeAdmin/internal/rpc"
"github.com/iwind/TeaGo/logs"
)
type BaseDAO struct {
}
func (this *BaseDAO) RPC() *rpc.RPCClient {
client, err := rpc.SharedRPC()
if err != nil {
logs.Println("[MODEL]get shared rpc client failed: " + err.Error())
return nil
}
return client
}