forked from TrueCloudLab/frostfs-node
0e7e0bd2d6
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
25 lines
685 B
Go
25 lines
685 B
Go
package main
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neofs-api-go/v2/session"
|
|
sessionGRPC "github.com/nspcc-dev/neofs-api-go/v2/session/grpc"
|
|
sessionTransportGRPC "github.com/nspcc-dev/neofs-node/pkg/network/transport/session/grpc"
|
|
sessionSvc "github.com/nspcc-dev/neofs-node/pkg/services/session"
|
|
"github.com/nspcc-dev/neofs-node/pkg/services/session/storage"
|
|
)
|
|
|
|
func initSessionService(c *cfg) {
|
|
c.privateTokenStore = storage.New()
|
|
|
|
sessionGRPC.RegisterSessionServiceServer(c.cfgGRPC.server,
|
|
sessionTransportGRPC.New(
|
|
sessionSvc.NewSignService(
|
|
c.key,
|
|
sessionSvc.NewExecutionService(
|
|
c.privateTokenStore,
|
|
new(session.ResponseMetaHeader),
|
|
),
|
|
),
|
|
),
|
|
)
|
|
}
|