forked from TrueCloudLab/frostfs-api
[#57] Merge service and session packages
Merging session and service packages to increase clarity and reduce cross-dependencies. Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
762c9762ef
commit
fc170f56bf
10 changed files with 280 additions and 213 deletions
|
@ -6,7 +6,7 @@ option go_package = "github.com/nspcc-dev/neofs-api-go/v2/session/grpc;session";
|
|||
option csharp_namespace = "NeoFS.API.v2.Session";
|
||||
|
||||
import "refs/types.proto";
|
||||
import "service/types.proto";
|
||||
import "session/types.proto";
|
||||
|
||||
// Create Session record on Node side
|
||||
service SessionService {
|
||||
|
@ -28,11 +28,11 @@ message CreateRequest {
|
|||
|
||||
// Carries request meta information. Header data is used only to regulate message
|
||||
// transport and does not affect request execution.
|
||||
neo.fs.v2.service.RequestMetaHeader meta_header = 2;
|
||||
neo.fs.v2.session.RequestMetaHeader meta_header = 2;
|
||||
|
||||
// Carries request verification information. This header is used to authenticate
|
||||
// the nodes of the message route and check the correctness of transmission.
|
||||
neo.fs.v2.service.RequestVerificationHeader verify_header = 3;
|
||||
neo.fs.v2.session.RequestVerificationHeader verify_header = 3;
|
||||
}
|
||||
|
||||
// CreateResponse carries an information about the opened session.
|
||||
|
@ -51,10 +51,10 @@ message CreateResponse {
|
|||
|
||||
// Carries response meta information. Header data is used only to regulate
|
||||
// message transport and does not affect request execution.
|
||||
neo.fs.v2.service.ResponseMetaHeader meta_header = 2;
|
||||
neo.fs.v2.session.ResponseMetaHeader meta_header = 2;
|
||||
|
||||
// Carries response verification information. This header is used to
|
||||
// authenticate the nodes of the message route and check the correctness
|
||||
// of transmission.
|
||||
neo.fs.v2.service.ResponseVerificationHeader verify_header = 3;
|
||||
neo.fs.v2.session.ResponseVerificationHeader verify_header = 3;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue