forked from TrueCloudLab/frostfs-api-go
cf765a61a6
Implement gRPC client that can uniformly execute any RPC on the remote server. In the primary implementation, the client is a thin wrapper over gRPC client connection that is required to create the client. In the future, it is planned to expand the library with convenient functionality. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
13 lines
221 B
Go
13 lines
221 B
Go
package grpc
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/nspcc-dev/neofs-api-go/rpc/common"
|
|
)
|
|
|
|
const methodNameFmt = "%s/%s"
|
|
|
|
func toMethodName(p common.CallMethodInfo) string {
|
|
return fmt.Sprintf(methodNameFmt, p.Service, p.Name)
|
|
}
|