2 // Copyright (C) 2013 LEA
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package leap.common.events;
20 CLIENT_SESSION_ID = 1;
22 SOLEDAD_CREATING_KEYS = 3;
23 SOLEDAD_DONE_CREATING_KEYS = 4;
24 SOLEDAD_UPLOADING_KEYS = 5;
25 SOLEDAD_DONE_UPLOADING_KEYS = 6;
26 SOLEDAD_DOWNLOADING_KEYS = 7;
27 SOLEDAD_DONE_DOWNLOADING_KEYS = 8;
28 SOLEDAD_NEW_DATA_TO_SYNC = 9;
29 SOLEDAD_DONE_DATA_SYNC = 10;
30 UPDATER_NEW_UPDATES = 11;
31 UPDATER_DONE_UPDATING = 12;
35 message SignalRequest {
36 required Event event = 1;
37 required string content = 2;
38 required string mac_method = 3;
39 required bytes mac = 4;
40 optional string enc_method = 5;
41 optional bool error_occurred = 6;
44 message RegisterRequest {
45 required Event event = 1;
46 required int32 port = 2;
47 required string mac_method = 3;
48 required bytes mac = 4;
51 message EventResponse {
59 required Status status = 1;
60 optional string result = 2;
63 service EventsServerService {
64 rpc register(RegisterRequest) returns (EventResponse);
65 rpc signal(SignalRequest) returns (EventResponse);
68 service EventsComponentService {
69 rpc signal(SignalRequest) returns (EventResponse);