Merge pull request #1 from vacp2p/update-protobuf

update protobuf
This commit is contained in:
Dean Eigenmann 2019-07-25 15:51:31 -02:30 committed by GitHub
commit a9b76e4575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
mvds.md
View File

@ -48,20 +48,21 @@ Payloads are implemented using [protocol buffers v3](https://developers.google.c
syntax = "proto3";
message Payload {
repeated bytes acks = 1;
repeated bytes offers = 2;
repeated bytes requests = 3;
repeated Message messages = 4;
repeated bytes acks = 5001;
repeated bytes offers = 5002;
repeated bytes requests = 5003;
repeated Message messages = 5004;
}
message Message {
bytes group_id = 1;
int64 timestamp = 2;
bytes body = 3;
bytes group_id = 6001;
int64 timestamp = 6002;
bytes body = 6003;
}
```
*The payload field numbers are kept more "unique" to ensure no overlap with other protocol buffers.*
Each payload contains the following fields:
- **Acks:** This field contains a list (can be empty) of `message identifiers` informing the recipient that sender holds a specific message.