From df97e35f30f13d331a9654a05d49484c09ccbdd8 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 24 Mar 2021 12:52:35 +0300 Subject: [PATCH] [#444] reputation: Define RPC Server interface Define `Server` interface of NeoFS API V2 Reputation service server. Signed-off-by: Leonard Lyubich --- pkg/services/reputation/rpc/server.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pkg/services/reputation/rpc/server.go diff --git a/pkg/services/reputation/rpc/server.go b/pkg/services/reputation/rpc/server.go new file mode 100644 index 000000000..f6ccfbfe2 --- /dev/null +++ b/pkg/services/reputation/rpc/server.go @@ -0,0 +1,12 @@ +package reputationrpc + +import ( + "context" + + "github.com/nspcc-dev/neofs-api-go/v2/reputation" +) + +// Server is an interface of the NeoFS API v2 Reputation service server. +type Server interface { + SendLocalTrust(context.Context, *reputation.SendLocalTrustRequest) (*reputation.SendLocalTrustResponse, error) +}