2022-11-16 07:45:10 +00:00
|
|
|
syntax = "proto2";
|
|
|
|
|
|
|
|
enum Type {
|
2022-11-20 00:44:55 +00:00
|
|
|
BOOTSTRAP_REQUEST = 1;
|
|
|
|
BOOTSTRAP_RESPONSE = 2;
|
|
|
|
CONNECTED = 3;
|
|
|
|
DISCONNECTED = 4;
|
|
|
|
STATE = 5;
|
2022-11-16 07:45:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Message {
|
2022-11-20 00:44:55 +00:00
|
|
|
required Type type = 1;
|
|
|
|
map<string, State> bootstrap = 2; // For bootstrap events
|
|
|
|
optional bytes data = 3; // For state event
|
|
|
|
optional bytes signature = 4;
|
|
|
|
optional int64 timestamp = 5;
|
|
|
|
optional bytes id = 6; // For connected and disconnected events
|
2022-11-16 07:45:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message State {
|
2022-11-20 00:44:55 +00:00
|
|
|
repeated bytes connectedTo = 1;
|
|
|
|
optional bytes data = 2;
|
|
|
|
optional bytes signature = 3;
|
|
|
|
optional int64 timestamp = 4;
|
2022-11-16 07:45:10 +00:00
|
|
|
}
|