[#13] neofs-node: Use signing Object service in app

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-25 16:37:10 +03:00 committed by Alex Vanin
parent 276ec2e1e0
commit eb874092b5
3 changed files with 56 additions and 13 deletions

18
cmd/neofs-node/object.go Normal file
View file

@ -0,0 +1,18 @@
package main
import (
objectGRPC "github.com/nspcc-dev/neofs-api-go/v2/object/grpc"
objectTransportGRPC "github.com/nspcc-dev/neofs-node/pkg/network/transport/object/grpc"
objectService "github.com/nspcc-dev/neofs-node/pkg/services/object"
)
func initObjectService(c *cfg) {
objectGRPC.RegisterObjectServiceServer(c.cfgGRPC.server,
objectTransportGRPC.New(
objectService.NewSignService(
c.key,
new(objectSvc),
),
),
)
}