d6e129179c
Implement global server as control plane Implement device to get their info from global server and connect each others
21 lines
397 B
Protocol Buffer
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;
|
|
} |