micro/registry/gossip/proto/gossip.proto

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