go-micro: github.com/micro/go-micro/util/grpc Index | Files

package grpc

import "github.com/micro/go-micro/util/grpc"


Package Files


func ServiceFromMethod Uses

func ServiceFromMethod(m string) string

ServiceFromMethod returns the service /service.Foo/Bar => service

func ServiceMethod Uses

func ServiceMethod(m string) (string, string, error)

ServiceMethod converts a gRPC method to a Go method Input: Foo.Bar, /Foo/Bar, /package.Foo/Bar, /a.package.Foo/Bar Output: [Foo, Bar]

Package grpc imports 2 packages (graph) and is imported by 3 packages. Updated 2019-07-27. Refresh now. Tools for package owners.