在节点详情中显示API节点地址/DNS节点也支持自定义API节点地址

This commit is contained in:
刘祥超
2022-11-21 21:08:17 +08:00
parent 64f54d462e
commit a95d202ef0
8 changed files with 4352 additions and 3966 deletions

View File

@@ -36,6 +36,7 @@ message Node {
int32 level = 20;
repeated string lnAddrs = 21; // Ln访问地址
bool enableIPLists = 22;
bytes apiNodeAddrsJSON = 24;
NodeCluster nodeCluster = 32; // 主集群
NodeLogin nodeLogin = 33;

View File

@@ -20,6 +20,7 @@ message NSNode {
bool isUp = 8;
bool isActive = 10;
repeated int64 connectedAPINodeIds = 11;
bytes apiNodeAddrsJSON = 12;
NSCluster nsCluster = 32;
NodeLogin nodeLogin = 33;

View File

@@ -84,6 +84,12 @@ service NSNodeService {
// 修改NS节点的DDoS设置
rpc updateNSNodeDDoSProtection(UpdateNSNodeDDoSProtectionRequest) returns (RPCSuccess);
// 查找单个节点的API相关配置
rpc findNSNodeAPIConfig(FindNSNodeAPIConfigRequest) returns (FindNSNodeAPIConfigResponse);
// 修改某个节点的API相关配置
rpc updateNSNodeAPIConfig(UpdateNSNodeAPIConfigRequest) returns (RPCSuccess);
}
// 根据集群查找所有NS节点
@@ -297,3 +303,17 @@ message UpdateNSNodeDDoSProtectionRequest {
bytes ddosProtectionJSON = 2;
}
// 查找单个节点的API相关配置
message FindNSNodeAPIConfigRequest {
int64 nsNodeId = 1;
}
message FindNSNodeAPIConfigResponse {
bytes apiNodeAddrsJSON = 1;
}
// 修改某个节点的API相关配置
message UpdateNSNodeAPIConfigRequest {
int64 nsNodeId = 1;
bytes apiNodeAddrsJSON = 2;
}