From f49899c4c4bf85779934b4a59a9a4ca568b1d867 Mon Sep 17 00:00:00 2001 From: t-horikawa Date: Mon, 15 Jan 2024 14:24:16 +0900 Subject: [PATCH] revise tateyama/proto/endpoint/request.proto --- src/tateyama/proto/endpoint/request.proto | 42 ++++++++++++++++------- 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/tateyama/proto/endpoint/request.proto b/src/tateyama/proto/endpoint/request.proto index ba336d8..25b996b 100644 --- a/src/tateyama/proto/endpoint/request.proto +++ b/src/tateyama/proto/endpoint/request.proto @@ -27,11 +27,21 @@ message Request { // handshake operation. message Handshake { - // the auth info. - AuthInfo auth_info = 1; + // the credential. + Credential credential = 1; // the client information. ClientInformation client_information = 2; + + // reserved for system use + reserved 3 to 10; + + // the wire information. + WireInformation wire_information = 11; +} + +// the credential +message Credential { } // client information @@ -43,17 +53,25 @@ message ClientInformation { string application_name = 2; // the user name. - string user_name = 4; + string user_name = 3; +} - // the connection information - string connection_information = 5; +// wire information +message WireInformation { + oneof wire_information { + IpcInformation ipc_information = 1; + StreamInformation stream_information = 2; + } - // reserved for future use - reserved 6 to 10; + // ipc information + message IpcInformation { + // the connection information + string connection_information = 1; + } - // the maximum concurrent result sets - uint64 maximum_concurrent_result_sets = 11; + // stream information + message StreamInformation { + // the maximum concurrent result sets + uint64 maximum_concurrent_result_sets = 1; + } } - -// auto info. -message AuthInfo {}