Modify protocol

This commit is contained in:
Александр Федорюк 2022-11-30 14:24:03 +03:00
parent 25149bdedc
commit 0614836308
2 changed files with 6 additions and 3 deletions

View File

@ -17,4 +17,7 @@ message Header {
string method = 7;
string domain = 8;
string project = 9;
string callID = 10;
string callPrevID = 11;
}

View File

@ -5,13 +5,13 @@ package network;
option go_package = "./network";
message Metadata {
enum PackageType {
/*enum PackageType {
TYPE_REQUEST = 0; // Пакет запроса
TYPE_RESPONSE = 1; // Пакет ответа
TYPE_STREAM = 2; // Пакет потока, который не требует возврата результата (обратного вызова)
}
}*/
PackageType packageType = 1;
// PackageType packageType = 1;
string funcName = 2;
string queueCallback = 3;
string callResponseID = 4;