Files
Pengzhan Hao d6e129179c Create scaffolding of ddl-simulator
Implement global server as control plane

Implement device to get their info from global server and connect each
others
2024-12-17 07:31:18 +00:00

21 lines
397 B
Protocol Buffer

syntax = "proto3";
option go_package = "git.pengzhan.dev/ddp-simulator/proto";
service globalService {
rpc Init(InitRequest) returns (InitResponse) {}
}
message InitRequest {
string id = 1;
}
message InitResponse {
string role = 1;
optional float capacity = 2;
string ip = 3;
int32 port = 4;
optional string parent_id = 5;
optional string pip = 6;
optional int32 pport = 7;
}