| Lorenz Brun | de57e6f | 2025-01-08 16:34:08 +0000 | [diff] [blame^] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | import "google/protobuf/duration.proto"; |
| 4 | |
| 5 | package metropolis.test.e2e.connectivty_tester; |
| 6 | |
| 7 | message Request { |
| 8 | oneof req { |
| 9 | TestRequest test = 1; |
| 10 | StartServerRequest start_server = 2; |
| 11 | StopServerRequest stop_server = 3; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | message Response { |
| 16 | oneof res { |
| 17 | TestResponse test = 1; |
| 18 | StartServerResponse start_server = 2; |
| 19 | StopServerResponse stop_server = 3; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | message TestRequest { |
| 24 | string address = 1; |
| 25 | uint64 token = 2; |
| 26 | google.protobuf.Duration timeout = 3; |
| 27 | } |
| 28 | |
| 29 | message 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 | |
| 41 | message StartServerRequest { |
| 42 | string address = 1; |
| 43 | uint64 token = 2; |
| 44 | } |
| 45 | |
| 46 | message StartServerResponse { |
| 47 | bool ok = 1; |
| 48 | string error_description = 2; |
| 49 | } |
| 50 | |
| 51 | message StopServerRequest { |
| 52 | uint64 token = 1; |
| 53 | } |
| 54 | |
| 55 | message StopServerResponse { |
| 56 | bool ok = 1; |
| 57 | string error_description = 2; |
| 58 | } |
| 59 | |