26 lines
499 B
Protocol Buffer
26 lines
499 B
Protocol Buffer
syntax = "proto3";
|
|
package challenge;
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
message NodeUpdate {
|
|
string ip = 1;
|
|
google.protobuf.Timestamp started_at = 2;
|
|
google.protobuf.Timestamp keepalive = 3;
|
|
uint64 total_mints = 4;
|
|
uint64 ratls_conns = 5;
|
|
uint64 ratls_attacks = 6;
|
|
bool public = 7;
|
|
}
|
|
|
|
message Keypair {
|
|
string keypair = 1;
|
|
}
|
|
|
|
message Empty {}
|
|
|
|
service Update {
|
|
rpc GetKeypair (Empty) returns (Keypair);
|
|
rpc GetUpdates (stream NodeUpdate) returns (stream NodeUpdate);
|
|
}
|