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.
29 lines
547 B
Protocol Buffer
29 lines
547 B
Protocol Buffer
syntax = "proto3";
|
|
package grpc;
|
|
|
|
option go_package = "internal/pkg/grpc";
|
|
|
|
service handshake {
|
|
rpc ClientDiscoveryHandler(ClientRequest) returns (ClientResponse);
|
|
}
|
|
|
|
message ClientRequest {
|
|
uint32 clientId = 1;
|
|
string clientType = 2;
|
|
string ip = 3; // client ip
|
|
uint32 port = 4; // client port for gRPC server
|
|
}
|
|
|
|
message ClientResponse {
|
|
uint32 clientId = 1;
|
|
uint32 serverPort = 2;
|
|
Database database = 3;
|
|
}
|
|
|
|
message Database {
|
|
string URL = 1;
|
|
string ORG = 2;
|
|
string token = 3;
|
|
string bucket = 4;
|
|
}
|