service: remove gogoproto customname from embedded Token.Info field

This commit:

  * removes gogoproto customname option from embedded Token.Info field;

  * renames Info field of Token message to TokenInfo.
This commit is contained in:
Leonard Lyubich 2020-04-27 18:44:13 +03:00
parent 4a2a9db396
commit 1de0d29a74
2 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ User token granting rights for object manipulation
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| info | [Token.Info](#service.Token.Info) | | Info is a grouped information about token |
| TokenInfo | [Token.Info](#service.Token.Info) | | Info is a grouped information about token |
| Signature | [bytes](#bytes) | | Signature is a signature of session token information |

View file

@ -68,8 +68,8 @@ message Token {
bytes SessionKey = 7;
}
// Info is a grouped information about token
Info info = 1 [(gogoproto.embed) = true, (gogoproto.nullable) = false, (gogoproto.customname) = "Info"];
// TokenInfo is a grouped information about token
Info TokenInfo = 1 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
// Signature is a signature of session token information
bytes Signature = 8;