25da5d2e13
Replace all elements from `v2` to root directory. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
13 lines
225 B
Go
13 lines
225 B
Go
package grpc
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/rpc/common"
|
|
)
|
|
|
|
const methodNameFmt = "/%s/%s"
|
|
|
|
func toMethodName(p common.CallMethodInfo) string {
|
|
return fmt.Sprintf(methodNameFmt, p.Service, p.Name)
|
|
}
|