message saved if client crashes on retreival
This commit is contained in:
1 parent
6d3ea3e2a6
commit
006bedc728
11 files changed
+591
-72
No files matched your search
+8
-2
@@ -201,7 +201,10 @@ message PostAck { uint32 accepted = 1; }
|
||||
message MailboxAuth {
|
||||
bytes mailbox = 1;
|
||||
uint64 timestamp = 2;
|
||||
bytes signature = 3; // see ARCHITECTURE.md §3.5
|
||||
bytes signature = 3; // see ARCHITECTURE.md §3.5 (covers `acks`)
|
||||
// Ids of messages of this mailbox, received by an earlier pull and now safely
|
||||
// persisted by the client: the server deletes them before answering.
|
||||
repeated bytes acks = 4;
|
||||
}
|
||||
message Pull { repeated MailboxAuth auths = 1; uint32 wait_seconds = 2; }
|
||||
|
||||
@@ -209,8 +212,11 @@ message StoredMessage {
|
||||
bytes mailbox = 1;
|
||||
bytes payload = 2;
|
||||
uint64 received_at = 3;
|
||||
bytes id = 4; // server-assigned, opaque, unique within the mailbox
|
||||
}
|
||||
message PullResult { repeated StoredMessage messages = 1; }
|
||||
// Messages stay on the server until acknowledged (at-least-once delivery).
|
||||
// `more`: the server held back messages (count/size limit), pull again.
|
||||
message PullResult { repeated StoredMessage messages = 1; bool more = 2; }
|
||||
|
||||
message InvitationPublish {
|
||||
bytes payload = 1; // encoded InvitationOffer
|
||||
|
||||
Reference in new issue
Block a user