package rpc import ( "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/rpc/client" "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/rpc/common" "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/session" ) const serviceSession = serviceNamePrefix + "session.SessionService" const ( rpcSessionCreate = "Create" ) func CreateSession( cli *client.Client, req *session.CreateRequest, opts ...client.CallOption, ) (*session.CreateResponse, error) { resp := new(session.CreateResponse) err := client.SendUnary(cli, common.CallMethodInfoUnary(serviceSession, rpcSessionCreate), req, resp, opts...) if err != nil { return nil, err } return resp, nil }