forked from TrueCloudLab/frostfs-node
[#12] Serve gRPC session service in neofs-node app
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f5a0e354ef
commit
c378c353d5
4 changed files with 35 additions and 10 deletions
|
@ -7,13 +7,10 @@ import (
|
|||
|
||||
containerGRPC "github.com/nspcc-dev/neofs-api-go/v2/container"
|
||||
objectGRPC "github.com/nspcc-dev/neofs-api-go/v2/object"
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/session"
|
||||
"github.com/pkg/errors"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type sessionSvc struct{}
|
||||
|
||||
type containerSvc struct{}
|
||||
|
||||
type objectSvc struct{}
|
||||
|
@ -22,10 +19,6 @@ func unimplementedErr(srv, call string) error {
|
|||
return errors.Errorf("unimplemented API service call %s.%s", srv, call)
|
||||
}
|
||||
|
||||
func (s *sessionSvc) Create(context.Context, *session.CreateRequest) (*session.CreateResponse, error) {
|
||||
return nil, unimplementedErr("Session", "Create")
|
||||
}
|
||||
|
||||
func (s *containerSvc) Put(context.Context, *containerGRPC.PutRequest) (*containerGRPC.PutResponse, error) {
|
||||
return nil, unimplementedErr("Container", "Put")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue