Procházet zdrojové kódy

feature: 增加网络诊断功能, 增加网络诊断记录增查接口

klw-account2 před 2 měsíci
rodič
revize
fd32cf6150
1 změnil soubory, kde provedl 30 přidání a 0 odebrání
  1. 30 0
      networkDiagnostic.proto

+ 30 - 0
networkDiagnostic.proto

@@ -0,0 +1,30 @@
+syntax = "proto3";
+
+package networkdiagnostic;
+
+option go_package = "./networkdiagnostic";
+option java_multiple_files = true;
+option java_package = "io.grpc.networkdiagnostic";
+option java_outer_classname = "NetworkDiagnosticProto";
+
+service NetworkDiagnosticService {
+  rpc NetworkLatencyProbe (NetworkLatencyProbeRequest) returns  (NetworkLatencyProbeReply) {}
+}
+
+// request
+message NetworkLatencyProbeRequest {
+  string domainName = 1;
+  int32 execCount = 2;
+  int32 interval = 3;
+}
+
+// response
+message NetworkLatencyProbeReply {
+  double latency = 1;
+  int32 packetsReceive = 2;
+  int32 packetsSend = 3;
+  string ipAddr = 4;
+  string error = 5;
+}
+
+