增加读取节点数配额接口

This commit is contained in:
GoEdgeLab
2023-05-27 15:30:05 +08:00
parent 67d3f2eb5c
commit aefdb1fcb5
2 changed files with 233 additions and 47 deletions

View File

@@ -22,6 +22,9 @@ service AuthorityKeyService {
// 检查版本信息
rpc checkAuthority(CheckAuthorityRequest) returns (CheckAuthorityResponse);
// 查询授权容量
rpc findAuthorityQuota(FindAuthorityQuotaRequest) returns (FindAuthorityQuotaResponse);
}
// 设置Key
@@ -66,4 +69,14 @@ message CheckAuthorityRequest {
message CheckAuthorityResponse {
bool isPlus = 1;
string edition = 2;
}
// 查询授权容量
message FindAuthorityQuotaRequest {
}
message FindAuthorityQuotaResponse {
int32 maxNodes = 1; // 节点数限制
int32 countNodes = 2; // 已占用节点数
}