2020-07-10 14:17:51 +00:00
|
|
|
package node
|
|
|
|
|
|
|
|
import (
|
2020-07-24 13:54:03 +00:00
|
|
|
session "github.com/nspcc-dev/neofs-node/pkg/network/transport/session/grpc"
|
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/services/object_manager/placement"
|
2020-07-10 14:17:51 +00:00
|
|
|
"go.uber.org/dig"
|
|
|
|
"go.uber.org/zap"
|
|
|
|
)
|
|
|
|
|
|
|
|
type sessionParams struct {
|
|
|
|
dig.In
|
|
|
|
|
|
|
|
Logger *zap.Logger
|
|
|
|
|
|
|
|
TokenStore session.TokenStore
|
|
|
|
|
2020-07-24 13:54:03 +00:00
|
|
|
EpochReceiver *placement.PlacementWrapper
|
2020-07-10 14:17:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func newSessionService(p sessionParams) (session.Service, error) {
|
|
|
|
return session.New(session.Params{
|
|
|
|
TokenStore: p.TokenStore,
|
|
|
|
Logger: p.Logger,
|
|
|
|
EpochReceiver: p.EpochReceiver,
|
|
|
|
}), nil
|
|
|
|
}
|