增加获取当前API节点信息API/增加修改节点API节点地址消息类型

This commit is contained in:
GoEdgeLab
2021-11-21 09:41:38 +08:00
parent 782e2693de
commit 884fad7a86
4 changed files with 655 additions and 365 deletions

View File

@@ -33,6 +33,9 @@ service APINodeService {
// 获取当前API节点的版本
rpc findCurrentAPINodeVersion (FindCurrentAPINodeVersionRequest) returns (FindCurrentAPINodeVersionResponse);
// 获取当前API节点的信息
rpc findCurrentAPINode(FindCurrentAPINodeRequest) returns (FindCurrentAPINodeResponse);
// 计算使用某个SSL证书的API节点数量
rpc countAllEnabledAPINodesWithSSLCertId (CountAllEnabledAPINodesWithSSLCertIdRequest) returns (RPCCountResponse);
}
@@ -120,7 +123,15 @@ message FindCurrentAPINodeVersionResponse {
string version = 1;
}
// 获取当前API节点的信息
message FindCurrentAPINodeRequest {
}
message FindCurrentAPINodeResponse {
APINode apiNode = 1;
}
// 计算使用某个SSL证书的API节点数量
message CountAllEnabledAPINodesWithSSLCertIdRequest {
int64 sslCertId = 1;
}
}