You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
654 B
Protocol Buffer

syntax = "proto3";
package grpc;
option go_package = "internal/pkg/grpc";
service handshake {
rpc ReactorClientDiscoveryHandler(ReactorClientRequest) returns (ReactorClientResponse);
rpc TUIClientDiscoveryHandler(TUIClientRequest) returns (TUIClientResponse);
}
message ReactorClientRequest {
uint32 clientId = 1;
string clientIp = 2;
int32 clientPort = 3;
string clientModel = 4;
}
message ReactorClientResponse {
uint32 clientId = 1;
bool Success = 2;
}
message TUIClientRequest {
uint32 clientId = 1;
}
message TUIClientResponse {
uint32 clientId = 1;
string serverIp = 2;
int32 serverPort = 3;
}