16 lines
299 B
Protocol Buffer
16 lines
299 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 public = 4;
|
|
}
|
|
|
|
service Update {
|
|
rpc GetUpdates (stream NodeUpdate) returns (stream NodeUpdate);
|
|
}
|