27 lines
602 B
Protocol Buffer
27 lines
602 B
Protocol Buffer
syntax = "proto3";
|
|
package challenge;
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
import "google/protobuf/empty.proto";
|
|
|
|
service KeyDistribution {
|
|
rpc UpdateKey (UpdateKeyReq) returns (google.protobuf.Empty);
|
|
rpc UpdateNode (UpdateNodeReq) returns (google.protobuf.Empty);
|
|
rpc RemoveNode (RemoveNodeReq) returns (google.protobuf.Empty);
|
|
}
|
|
|
|
message UpdateKeyReq {
|
|
string keypair = 1;
|
|
google.protobuf.Timestamp updated_at = 2;
|
|
}
|
|
|
|
message UpdateNodeReq {
|
|
string keypair = 1;
|
|
google.protobuf.Timestamp updated_at = 2;
|
|
string ip = 3;
|
|
}
|
|
|
|
message RemoveNodeReq {
|
|
string ip = 1;
|
|
}
|