mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-09 00:40:24 +08:00
DNS节点增加在线状态通知
This commit is contained in:
@@ -56,6 +56,15 @@ service NSNodeService {
|
||||
|
||||
// 下载最新DNS节点安装文件
|
||||
rpc downloadNSNodeInstallationFile (DownloadNSNodeInstallationFileRequest) returns (DownloadNSNodeInstallationFileResponse);
|
||||
|
||||
// 节点stream
|
||||
rpc nsNodeStream (stream NSNodeStreamMessage) returns (stream NSNodeStreamMessage);
|
||||
|
||||
// 向节点发送命令
|
||||
rpc sendCommandToNSNode (NSNodeStreamMessage) returns (NSNodeStreamMessage);
|
||||
|
||||
// 更改节点连接的API节点信息
|
||||
rpc updateNSNodeConnectedAPINodes (UpdateNSNodeConnectedAPINodesRequest) returns (RPCSuccess);
|
||||
}
|
||||
|
||||
// 根据集群查找所有节点
|
||||
@@ -200,3 +209,19 @@ message DownloadNSNodeInstallationFileResponse {
|
||||
string version = 4;
|
||||
string filename = 5;
|
||||
}
|
||||
|
||||
// 节点stream
|
||||
message NSNodeStreamMessage {
|
||||
int64 nsNodeId = 1;
|
||||
int64 requestId = 2;
|
||||
int32 timeoutSeconds = 3;
|
||||
string code = 4;
|
||||
bytes dataJSON = 5;
|
||||
bool isOk = 6;
|
||||
string message = 7;
|
||||
}
|
||||
|
||||
// 更改节点连接的API节点信息
|
||||
message UpdateNSNodeConnectedAPINodesRequest {
|
||||
repeated int64 apiNodeIds = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user