mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-29 06:16:40 +08:00
在节点详情中显示API节点地址/DNS节点也支持自定义API节点地址
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user