2018-12-04 19:41:40 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package gossip;
|
|
|
|
|
|
|
|
// Update is the message broadcast
|
|
|
|
message Update {
|
2018-12-06 21:19:05 +03:00
|
|
|
// time to live for entry
|
2019-01-30 15:39:57 +03:00
|
|
|
uint64 expires = 1;
|
|
|
|
// type of update
|
|
|
|
int32 type = 2;
|
|
|
|
// what action is taken
|
|
|
|
int32 action = 3;
|
2018-12-04 19:41:40 +03:00
|
|
|
// any other associated metadata about the data
|
2018-12-06 21:19:05 +03:00
|
|
|
map<string, string> metadata = 6;
|
2018-12-04 19:41:40 +03:00
|
|
|
// the payload data;
|
2018-12-06 21:19:05 +03:00
|
|
|
bytes data = 7;
|
2018-12-04 19:41:40 +03:00
|
|
|
}
|