mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 17:15:43 +00:00
client: framework
This commit is contained in:
@@ -17,3 +17,20 @@ message ZoneConfigPb {
|
||||
repeated string records = 4;
|
||||
repeated string forwarders = 5;
|
||||
}
|
||||
|
||||
message DnsSnapshot {
|
||||
repeated ZoneConfigPb zones = 1;
|
||||
repeated common.SocketAddr addresses = 2;
|
||||
repeated common.Url listeners = 3;
|
||||
}
|
||||
|
||||
message DnsHeartbeat {
|
||||
common.UUID inst_id = 1;
|
||||
uint64 checksum = 2;
|
||||
optional DnsSnapshot data = 3;
|
||||
}
|
||||
|
||||
service DnsServerRpc {
|
||||
rpc Heartbeat(DnsHeartbeat) returns (common.Void) {}
|
||||
rpc GetConfig(common.Void) returns (DnsConfigPb) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user