Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3750078
D7425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
920 B
Referenced Files
None
Subscribers
None
D7425.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7425: [Tunnelbroker] Create gRPC service for emitting messages to devices
Attached
Detach File
Event Timeline
Log In to Comment