mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-08 03:00:26 +08:00
API节点状态中增加主程序位置信息
This commit is contained in:
@@ -58,6 +58,8 @@ func (this *NodeStatusExecutor) update() {
|
||||
status.BuildVersionCode = utils.VersionToLong(teaconst.Version)
|
||||
status.OS = runtime.GOOS
|
||||
status.Arch = runtime.GOARCH
|
||||
exe, _ := os.Executable()
|
||||
status.ExePath = exe
|
||||
status.ConfigVersion = 0
|
||||
status.IsActive = true
|
||||
status.ConnectionCount = 0 // TODO 实现连接数计算
|
||||
|
||||
@@ -221,6 +221,7 @@ func (this *APINodeService) FindEnabledAPINode(ctx context.Context, req *pb.Find
|
||||
AccessAddrsJSON: node.AccessAddrs,
|
||||
AccessAddrs: accessAddrs,
|
||||
IsPrimary: node.IsPrimary,
|
||||
StatusJSON: node.Status,
|
||||
}
|
||||
return &pb.FindEnabledAPINodeResponse{ApiNode: result}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user