mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-21 02:00:25 +08:00
DNS支持TSIG
This commit is contained in:
@@ -20,4 +20,5 @@ message NSAccessLog {
|
||||
int64 timestamp = 13;
|
||||
string requestId = 14;
|
||||
string timeLocal = 15;
|
||||
string error = 16;
|
||||
}
|
||||
@@ -14,6 +14,7 @@ message NSDomain {
|
||||
int64 createdAt = 4;
|
||||
bool isDeleted = 5;
|
||||
int64 version = 6;
|
||||
bytes tsigJSON = 7;
|
||||
|
||||
NSCluster nsCluster = 30;
|
||||
User user = 31;
|
||||
|
||||
@@ -3,12 +3,20 @@ option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_ns_domain.proto";
|
||||
import "models/model_ns_zone.proto";
|
||||
|
||||
// NS密钥
|
||||
message NSKey {
|
||||
int64 id =1;
|
||||
int64 id = 1;
|
||||
bool isOn = 2;
|
||||
string name = 3;
|
||||
string algo = 4;
|
||||
string secret = 5;
|
||||
string secretType = 6;
|
||||
bool isDeleted = 7;
|
||||
int64 version = 8;
|
||||
|
||||
NSDomain nsDomain = 30;
|
||||
NSZone nsZone = 31;
|
||||
}
|
||||
9
pkg/rpc/protos/models/model_ns_zone.proto
Normal file
9
pkg/rpc/protos/models/model_ns_zone.proto
Normal file
@@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
// DNS子域
|
||||
message NSZone {
|
||||
int64 id = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user