master
huanghai 5 years ago
parent 7f9b6cf846
commit 0b2c3174d1

@ -6,7 +6,7 @@ user = root
pwd = DsideaL147258369 pwd = DsideaL147258369
[distribute] #发布功能的配置 [distribute] #发布功能的配置
ip = 10.10.14.187 ip = server.dsmin.com
port = 22 port = 22
user = root user = root
pwd = dsideal pwd = dsideal
@ -29,7 +29,8 @@ project_name = dsBaseRpc
# 数据汇集的地址 # 数据汇集的地址
[dataExchange] [dataExchange]
host = http://10.10.14.186:9009 #host = http://10.10.14.186:9009
host = http://10.10.14.213:9009
exchangeUrl = /v1/dataex/DataexSet exchangeUrl = /v1/dataex/DataexSet
SystemAuthUrl = /v1/dataex/SystemAuth SystemAuthUrl = /v1/dataex/SystemAuth
SystemId = BASE_GO SystemId = BASE_GO

@ -1,7 +1,6 @@
package main package main
import ( import (
"dsBaseRpc/DataExchange"
"dsBaseRpc/RpcService/BaseClass/BaseClassProto" "dsBaseRpc/RpcService/BaseClass/BaseClassProto"
"dsBaseRpc/RpcService/BaseClass/BaseClassService" "dsBaseRpc/RpcService/BaseClass/BaseClassService"
"dsBaseRpc/RpcService/BaseGlobal/BaseGlobalProto" "dsBaseRpc/RpcService/BaseGlobal/BaseGlobalProto"
@ -116,9 +115,9 @@ func main() {
BasePositionProto.RegisterBasePositionManageServer(s, &BasePositionService.Rpc{}) BasePositionProto.RegisterBasePositionManageServer(s, &BasePositionService.Rpc{})
//五、开启一个数据上报的协程 //五、开启一个数据上报的协程
go func() { //go func() {
DataExchange.DataExchange() // DataExchange.DataExchange()
}() //}()
//六、 注册反射服务 这个服务是CLI使用的 跟服务本身没有关系 //六、 注册反射服务 这个服务是CLI使用的 跟服务本身没有关系
reflection.Register(s) reflection.Register(s)
//七、启动 //七、启动

Loading…
Cancel
Save