Prechádzať zdrojové kódy

feature: networkDiagnostic.proto

klw-account2 2 mesiacov pred
rodič
commit
d14da811d2
1 zmenil súbory, kde vykonal 28 pridanie a 0 odobranie
  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;
+}