mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-23 03:00:24 +08:00
域名解析功能实现健康检查
This commit is contained in:
@@ -19,6 +19,7 @@ message NSDomain {
|
||||
repeated int64 nsDomainGroupIds = 8;
|
||||
string status = 9;
|
||||
int64 userId = 10; // 用户ID
|
||||
bytes recordsHealthCheckJSON = 11; // 健康检查设置
|
||||
|
||||
NSCluster nsCluster = 30;
|
||||
User user = 31;
|
||||
|
||||
@@ -8,11 +8,11 @@ import "models/model_ns_route.proto";
|
||||
|
||||
// 域名记录
|
||||
message NSRecord {
|
||||
int64 id = 1;
|
||||
string description = 2;
|
||||
string name = 3;
|
||||
string type = 4;
|
||||
string value = 5;
|
||||
int64 id = 1; // 记录ID
|
||||
string description = 2; // 备注
|
||||
string name = 3; // 记录名
|
||||
string type = 4; // 记录类型
|
||||
string value = 5; // 记录值
|
||||
|
||||
int32 mxPriority = 12; // mx优先级
|
||||
|
||||
@@ -23,13 +23,16 @@ message NSRecord {
|
||||
int32 caaFlag = 16; // CAA Flag
|
||||
string caaTag = 17; // CAA TAG
|
||||
|
||||
int32 ttl = 6;
|
||||
int32 weight = 7;
|
||||
int32 ttl = 6; // TTL
|
||||
int32 weight = 7; // 权重
|
||||
int64 createdAt = 8;
|
||||
bool isDeleted = 9;
|
||||
int64 version = 10;
|
||||
bool isOn = 11;
|
||||
bool isOn = 11; // 是否启用
|
||||
|
||||
NSDomain nsDomain = 30;
|
||||
repeated NSRoute nsRoutes = 31;
|
||||
bytes healthCheckJSON = 18; // 健康检查配置
|
||||
bool isUp = 19; // 是否在线(根据健康检查结果)
|
||||
|
||||
NSDomain nsDomain = 30; // 所属域名
|
||||
repeated NSRoute nsRoutes = 31; // 线路
|
||||
}
|
||||
Reference in New Issue
Block a user