micro/registry/gossip/proto/gossip.proto

18 lines
342 B
Protocol Buffer
Raw Normal View History

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