mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-04-05 14:45:20 +08:00
实现域名、记录同步等API
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user