frostfs-node/cmd/neofs-node/object.go
Leonard Lyubich eb874092b5 [#13] neofs-node: Use signing Object service in app
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-10-02 11:25:35 +03:00

18 lines
445 B
Go

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),
),
),
)
}