2019-10-03 11:23:56 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package gossip;
|
2021-01-30 00:30:51 +03:00
|
|
|
option go_package = "github.com/unistack-org/micro-register-gossip;gossip";
|
2019-10-03 11:23:56 +03:00
|
|
|
|
|
|
|
// Update is the message broadcast
|
|
|
|
message Update {
|
|
|
|
// time to live for entry
|
|
|
|
uint64 expires = 1;
|
|
|
|
// type of update
|
|
|
|
int32 type = 2;
|
|
|
|
// what action is taken
|
|
|
|
int32 action = 3;
|
|
|
|
// any other associated metadata about the data
|
|
|
|
map<string, string> metadata = 6;
|
|
|
|
// the payload data;
|
|
|
|
bytes data = 7;
|
|
|
|
}
|