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.
26 lines
440 B
Protocol Buffer
26 lines
440 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;
|
|
}
|
|
|
|
message ClientResponse {
|
|
uint32 clientId = 1;
|
|
uint32 serverPort = 2;
|
|
Database database = 3;
|
|
}
|
|
|
|
message Database {
|
|
string URL = 1;
|
|
string ORG = 2;
|
|
string token = 3;
|
|
}
|