优化配置结构

This commit is contained in:
duanhf2012
2020-04-21 17:23:59 +08:00
parent a189c2c80b
commit e543e302ef
5 changed files with 113 additions and 37 deletions

View File

@@ -41,7 +41,8 @@ type Cluster struct {
localNodeMapService map[string]interface{} //本Node支持的服务
localNodeInfo NodeInfo
localNodeServiceCfg map[string]interface{} //map[servicename]数据
localServiceCfg map[string]interface{} //map[servicename]数据
localNodeServiceCfg map[int]map[string]interface{} //map[nodeid]map[servicename]数据
mapRpc map[int] NodeRpcInfo//nodeid