实现域名、记录同步等API

This commit is contained in:
刘祥超
2021-06-01 16:43:13 +08:00
parent c725c9e082
commit e4d958fd2c
19 changed files with 1400 additions and 369 deletions

View File

@@ -44,6 +44,12 @@ service NSNodeService {
// 修改节点安装状态
rpc updateNSNodeIsInstalled (UpdateNSNodeIsInstalledRequest) returns (RPCSuccess);
// 更新节点状态
rpc updateNSNodeStatus (UpdateNSNodeStatusRequest) returns (RPCSuccess);
// 获取当前节点信息
rpc findCurrentNSNode (FindCurrentNSNodeRequest) returns (FindCurrentNSNodeResponse);
}
// 根据集群查找所有节点
@@ -145,4 +151,19 @@ message FindNSNodeInstallStatusResponse {
message UpdateNSNodeIsInstalledRequest {
int64 nsNodeId = 1;
bool isInstalled = 2;
}
// 更新认证状态
message UpdateNSNodeStatusRequest {
int64 nodeId = 1;
bytes statusJSON = 2;
}
// 获取当前节点信息
message FindCurrentNSNodeRequest {
}
message FindCurrentNSNodeResponse {
NSNode nsNode = 1;
}