Browse Source

feature: networkDiagnostic.proto

klw-account2 2 tháng trước cách đây
mục cha
commit
d14da811d2
1 tập tin đã thay đổi với 28 bổ sung0 xóa
  1. 28 0
      networkDiagnostic.proto

+ 28 - 0
networkDiagnostic.proto

@@ -0,0 +1,28 @@
+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;
+}