Page MenuHomePhabricator

D7425.diff
No OneTemporary

D7425.diff

diff --git a/shared/protos/tunnelbroker.proto b/shared/protos/tunnelbroker.proto
new file mode 100644
--- /dev/null
+++ b/shared/protos/tunnelbroker.proto
@@ -0,0 +1,25 @@
+syntax = "proto3";
+
+package tunnelbroker;
+
+// gRPC service for Comm services (client) to issue requests to
+// tunnelbroker (server).
+//
+// Authentication between services are expected to be validated outside of the
+// RPC protocol.
+service TunnelbrokerService {
+ // Sends a stringified JSON payload to device
+ //
+ // Tunnelbroker will enqueue the message, and send it next time the device
+ // connects to tunnelbroker and flushes the queue.
+ rpc SendMessageToDevice(MessageToDevice) returns (Empty) {}
+}
+
+message Empty {}
+
+message MessageToDevice {
+ // The primary identity key of a device
+ string deviceID = 1;
+ // JSON encoded message. See shared/tunnelbroker_messages for valid payloads
+ string payload = 2;
+}

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 10, 10:11 PM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2855929
Default Alt Text
D7425.diff (920 B)

Event Timeline