micro/registry/gossip/proto/gossip.proto

18 lines
342 B
Protocol Buffer
Raw Normal View History

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
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
}