16 lines
313 B
Protocol Buffer
16 lines
313 B
Protocol Buffer
syntax = "proto3";
|
|
package challenge;
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
message NodeUpdate {
|
|
string ip = 1;
|
|
string keypair = 2;
|
|
google.protobuf.Timestamp updated_at = 3;
|
|
bool online = 4;
|
|
}
|
|
|
|
service KeyDistribution {
|
|
rpc UpdateStreaming (stream NodeUpdate) returns (stream NodeUpdate);
|
|
}
|