-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrpc.proto
More file actions
48 lines (38 loc) · 975 Bytes
/
rpc.proto
File metadata and controls
48 lines (38 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
syntax = "proto3";
option java_package = "io.deepstream.protobuf";
enum RPC_ACTION {
RPC_UNKNOWN = 0;
RPC_ERROR = 1;
RPC_REQUEST = 2;
RPC_ACCEPT = 4;
RPC_RESPONSE = 5;
RPC_REJECT = 6;
RPC_REQUEST_ERROR = 7;
RPC_PROVIDE = 8;
RPC_UNPROVIDE = 9;
RPC_NO_RPC_PROVIDER = 100;
RPC_ACCEPT_TIMEOUT = 101;
RPC_MULTIPLE_ACCEPT = 102;
RPC_INVALID_RPC_CORRELATION_ID = 103;
RPC_RESPONSE_TIMEOUT = 104;
RPC_MULTIPLE_RESPONSE = 105;
RPC_MESSAGE_PERMISSION_ERROR = 106;
RPC_MESSAGE_DENIED = 107;
RPC_INVALID_MESSAGE_DATA = 108;
RPC_MULTIPLE_PROVIDERS = 109;
RPC_NOT_PROVIDED = 110;
}
message RpcMessage {
RPC_ACTION action = 1;
string data = 2;
string correlationId = 3;
bool isError = 4;
bool isAck = 5;
repeated string names = 6;
// rpc
string name = 7;
// permission
int32 originalAction = 9;
string requestorName = 10;
string requestorData = 11;
}