mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-25 11:36:35 +08:00
DNS节点增加在线状态通知
This commit is contained in:
@@ -14,6 +14,7 @@ message Message {
|
||||
bytes paramsJSON = 5;
|
||||
bool isRead = 6;
|
||||
int64 createdAt = 7;
|
||||
string role = 8;
|
||||
|
||||
NodeCluster nodeCluster = 30;
|
||||
Node node = 31;
|
||||
|
||||
@@ -17,6 +17,7 @@ message NSNode {
|
||||
bool isInstalled = 7;
|
||||
string installDir = 9;
|
||||
bool isUp = 8;
|
||||
bool isActive = 10;
|
||||
|
||||
NSCluster nsCluster = 32;
|
||||
//NodeLogin login = 33;
|
||||
|
||||
@@ -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