forked from ramananbalakrishnan/basic-grpc-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish.proto
More file actions
29 lines (25 loc) · 818 Bytes
/
publish.proto
File metadata and controls
29 lines (25 loc) · 818 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
// Orcfax publisher GRPC proto.
syntax = "proto3";
// A datum is sent from the client to the server and is likely some
// sort of json encoded as a string.
message Datum {
string datum = 1;
}
// Confirmation is sent from the server to the client and enables some
// level of success to be measured.
message Confirmation {
bool accepted = 1;
string value = 2;
}
/*Publish provides mechanisms for talking to various Orcfax publishing
components.
*/
service Publish {
/* PublishDatum receives a Datum from a remote host and returns a
confirmation.
The confirmation is the value of the datum once parsed. This
provides a mechanism to understand if what was received is what
was sent. More secure confirmations are possible.
*/
rpc PublishDatum(Datum) returns (Confirmation) {}
}