[#32] Rename fields according to Protobuf Style Guide

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2020-08-07 00:59:50 +03:00 committed by Stanislav Bogatyrev
parent 5fe4c2734e
commit e75ef53793
12 changed files with 236 additions and 239 deletions

View file

@ -17,25 +17,25 @@ service Session {
// CreateRequest carries an information necessary for opening a session.
message CreateRequest {
// Carries an identifier of a session initiator.
refs.OwnerID OwnerID = 1;
refs.OwnerID owner_id = 1;
// Carries a lifetime of the session.
service.TokenLifetime Lifetime = 2;
service.TokenLifetime lifetime = 2;
// Carries request meta information. Header data is used only to regulate message
// transport and does not affect request execution.
service.RequestMetaHeader MetaHeader = 98;
service.RequestMetaHeader meta_header = 98;
// Carries request verification information. This header is used to authenticate
// the nodes of the message route and check the correctness of transmission.
service.RequestVerificationHeader VerifyHeader = 99;
service.RequestVerificationHeader verify_header = 99;
}
// CreateResponse carries an information about the opened session.
message CreateResponse {
// ID carries an identifier of session token.
bytes ID = 1;
// id carries an identifier of session token.
bytes id = 1;
// SessionKey carries a session public key.
bytes SessionKey = 2;
// session_key carries a session public key.
bytes session_key = 2;
}