Page MenuHomePhabricator

D4217.id13677.diff
No OneTemporary

D4217.id13677.diff

diff --git a/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto b/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto
--- a/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto
+++ b/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto
@@ -76,17 +76,45 @@
repeated string blobHashes = 3;
}
+// The messages from the Tunnelbroker to the Client
+
+message OutboundMessageStruct {
+ string fromDeviceID = 1;
+ string payload = 2;
+ int64 createdAt = 3;
+ repeated string blobHashes = 4;
+}
+
+message OutboundMessagesToReceive {
+ repeated OutboundMessageStruct messages = 1;
+}
+
message OutboundMessage {
+ string sessionID = 1;
+ oneof data {
+ OutboundMessagesToReceive messagesToReceive = 2;
+ int64 checkpointTimeConfirmation = 3;
+ }
+}
+
+// The messages from the Client to the Tunnelbroker
+
+message InboundMessageStruct {
string toDeviceID = 1;
string payload = 2;
repeated string blobHashes = 3;
}
+message InboundMessagesToSend {
+ repeated InboundMessageStruct messages = 1;
+}
+
message InboundMessage {
- string fromDeviceID = 1;
- string fromConnectionID = 2;
- string payload = 3;
- repeated string blobHashes = 4;
+ string sessionID = 1;
+ oneof data {
+ InboundMessagesToSend messagesToSent = 2;
+ int64 checkpointTimeConfirmation = 3;
+ }
}
// Old API structures

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 8:44 AM (21 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2600304
Default Alt Text
D4217.id13677.diff (1 KB)

Event Timeline