forked from decipherhub/MSM-grpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomputation.proto
42 lines (32 loc) · 914 Bytes
/
computation.proto
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
syntax = "proto3";
package computation;
// The computation service definition.
service ComputationService {
// Sends computation data to a node
rpc SendComputationData (ComputationRequest) returns (ComputationAck);
// Receives computation results from a node
rpc GetComputationResult (ComputationResult) returns (ResultAck);
// Streams computation data to a node
rpc StreamComputationData (StreamRequest) returns (stream ComputationData);
}
// The request message containing the computation data.
message ComputationRequest {
string data = 1;
}
// The acknowledgment message for computation data reception.
message ComputationAck {
bool success = 1;
}
// The message containing computation results.
message ComputationResult {
string result = 1;
}
message ResultAck {
bool success = 1;
}
message StreamRequest {
string clientId = 1;
}
message ComputationData {
string data = 1;
}