Create scaffolding of ddl-simulator
Implement global server as control plane Implement device to get their info from global server and connect each others
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user