forked from TrueCloudLab/frostfs-api
[#32] session: Remove gogoproto from typedef
There is a need to remove gogoproto usage from NeoFS API since this plugin is not cross-language. This commit removes usage from session package. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a8beb62693
commit
58f34763c0
1 changed files with 4 additions and 8 deletions
|
@ -6,10 +6,6 @@ option csharp_namespace = "NeoFS.API.Session";
|
||||||
import "service/meta.proto";
|
import "service/meta.proto";
|
||||||
import "service/verify.proto";
|
import "service/verify.proto";
|
||||||
import "refs/types.proto";
|
import "refs/types.proto";
|
||||||
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
||||||
|
|
||||||
option (gogoproto.stable_marshaler_all) = true;
|
|
||||||
|
|
||||||
|
|
||||||
service Session {
|
service Session {
|
||||||
// Create opens new session between the client and the server
|
// Create opens new session between the client and the server
|
||||||
|
@ -22,18 +18,18 @@ message CreateRequest {
|
||||||
refs.OwnerID OwnerID = 1;
|
refs.OwnerID OwnerID = 1;
|
||||||
|
|
||||||
// Lifetime carries a lifetime of the session
|
// Lifetime carries a lifetime of the session
|
||||||
service.TokenLifetime Lifetime = 2 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
service.TokenLifetime Lifetime = 2;
|
||||||
|
|
||||||
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
|
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
|
||||||
service.RequestMetaHeader Meta = 98 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
service.RequestMetaHeader Meta = 98;
|
||||||
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
|
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
|
||||||
service.RequestVerificationHeader Verify = 99 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
service.RequestVerificationHeader Verify = 99;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateResponse carries an information about the opened session
|
// CreateResponse carries an information about the opened session
|
||||||
message CreateResponse {
|
message CreateResponse {
|
||||||
// ID carries an identifier of session token
|
// ID carries an identifier of session token
|
||||||
bytes ID = 1 [(gogoproto.customtype) = "TokenID", (gogoproto.nullable) = false];
|
bytes ID = 1;
|
||||||
|
|
||||||
// SessionKey carries a session public key
|
// SessionKey carries a session public key
|
||||||
bytes SessionKey = 2;
|
bytes SessionKey = 2;
|
||||||
|
|
Loading…
Reference in a new issue