micro/registry/gossip/proto/gossip.proto

22 lines
465 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 {
// unique id of update
string id = 1;
// unix nano timestamp of update
uint64 timestamp = 2;
2018-12-06 18:19:05 +00:00
// time to live for entry
uint64 expires = 3;
2018-12-04 16:41:40 +00:00
// type of update; service
2018-12-06 18:19:05 +00:00
string type = 4;
2018-12-04 16:41:40 +00:00
// what action is taken; add, del, put
2018-12-06 18:19:05 +00:00
string action = 5;
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
}