blob: 8ab8a0cb098acc85e3124f6438548d333bdda598 [file] [log] [blame]
Lorenz Brunde57e6f2025-01-08 16:34:08 +00001syntax = "proto3";
2
3import "google/protobuf/duration.proto";
4
5package metropolis.test.e2e.connectivty_tester;
6
7message Request {
8 oneof req {
9 TestRequest test = 1;
10 StartServerRequest start_server = 2;
11 StopServerRequest stop_server = 3;
12 }
13}
14
15message Response {
16 oneof res {
17 TestResponse test = 1;
18 StartServerResponse start_server = 2;
19 StopServerResponse stop_server = 3;
20 }
21}
22
23message TestRequest {
24 string address = 1;
25 uint64 token = 2;
26 google.protobuf.Duration timeout = 3;
27}
28
29message TestResponse {
30 enum Result {
31 UNKNOWN = 0;
32 CONNECTION_REJECTED = 1;
33 CONNECTION_TIMEOUT = 2;
34 WRONG_TOKEN = 3;
35 SUCCESS = 4;
36 }
37 Result result = 1;
38 string error_description = 2;
39}
40
41message StartServerRequest {
42 string address = 1;
43 uint64 token = 2;
44}
45
46message StartServerResponse {
47 bool ok = 1;
48 string error_description = 2;
49}
50
51message StopServerRequest {
52 uint64 token = 1;
53}
54
55message StopServerResponse {
56 bool ok = 1;
57 string error_description = 2;
58}
59