@@ -2,24 +2,24 @@ syntax = "proto3";
22
33package nym.vpn ;
44
5- message Empty {}
6-
7- message Gateway {
8- string id = 1 ;
9- Location location = 2 ;
10- }
11-
12- message Location {
13- string two_letter_country_code = 1 ;
14- }
15-
16- message Node {
17- oneof node {
18- Location location = 1 ;
19- Gateway gateway = 2 ;
20- Empty fastest = 3 ;
21- }
22- }
5+ // message Empty {}
6+
7+ // message Gateway {
8+ // string id = 1;
9+ // Location location = 2;
10+ // }
11+ //
12+ // message Location {
13+ // string two_letter_country_code = 1;
14+ // }
15+ //
16+ // message Node {
17+ // oneof node {
18+ // Location location = 1;
19+ // Gateway gateway = 2;
20+ // Empty fastest = 3;
21+ // }
22+ // }
2323
2424message ConnectRequest {
2525 // Node entry = 1;
@@ -36,12 +36,12 @@ message DisconnectResponse {
3636 bool success = 1 ;
3737}
3838
39- enum VpnMode {
40- MODE_UNSPECIFIED = 0 ;
41- MIXNET_FIVE_HOP = 1 ;
42- MIXNET_TWO_HOP = 2 ;
43- WIREGUARD_TWO_HOP = 3 ;
44- }
39+ // enum VpnMode {
40+ // MODE_UNSPECIFIED = 0;
41+ // MIXNET_FIVE_HOP = 1;
42+ // MIXNET_TWO_HOP = 2;
43+ // WIREGUARD_TWO_HOP = 3;
44+ // }
4545
4646enum ConnectionStatus {
4747 STATUS_UNSPECIFIED = 0 ;
@@ -53,48 +53,44 @@ enum ConnectionStatus {
5353 CONNECTION_FAILED = 6 ;
5454}
5555
56- message LocationListResponse {
57- repeated Location location = 1 ;
58- }
59-
60- message SetVpnModeRequest {
61- VpnMode mode = 1 ;
62- }
63-
64- message GetVpnModeResponse {
65- VpnMode mode = 1 ;
66- }
67-
68- message GatewayResponse {
69- Gateway gateways = 1 ;
70- }
56+ // message LocationListResponse {
57+ // repeated Location location = 1;
58+ // }
59+ //
60+ // message SetVpnModeRequest {
61+ // VpnMode mode = 1;
62+ // }
63+ //
64+ // message GetVpnModeResponse {
65+ // VpnMode mode = 1;
66+ // }
67+ //
68+ // message GatewayResponse {
69+ // Gateway gateways = 1;
70+ // }
7171
7272message StatusRequest {}
7373message StatusResponse {
7474 ConnectionStatus status = 1 ;
7575 Error error = 2 ;
7676}
7777
78- message ConnectionStatusUpdate {
79- ConnectionStatus status = 1 ;
80- repeated ConnectionProgress connection_progress = 2 ;
81- // optional Error error = 3;
82- }
83-
84- message ConnectionProgress {
85- string message = 1 ;
86- }
78+ // message ConnectionStatusUpdate {
79+ // ConnectionStatus status = 1;
80+ // repeated ConnectionProgress connection_progress = 2;
81+ // // optional Error error = 3;
82+ // }
83+ //
84+ // message ConnectionProgress {
85+ // string message = 1;
86+ // }
8787
8888message Error {
8989 string message = 1 ;
9090 // ErrorType type = 2; // TOBE implemented
9191 // optional string source = 3;
9292}
9393
94- message SetUserCredentialsRequest {
95- string key = 1 ;
96- }
97-
9894message ImportUserCredentialRequest {
9995 bytes credential = 1 ;
10096}
0 commit comments