Merge pull request #485 from micro/grpc

Add grpc transport
This commit is contained in:
Asim Aslam
2019-06-03 18:48:13 +01:00
committed by GitHub
8 changed files with 793 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ import (
// transports
"github.com/micro/go-micro/transport"
tgrpc "github.com/micro/go-micro/transport/grpc"
thttp "github.com/micro/go-micro/transport/http"
tmem "github.com/micro/go-micro/transport/memory"
)
@@ -199,6 +200,7 @@ var (
DefaultTransports = map[string]func(...transport.Option) transport.Transport{
"memory": tmem.NewTransport,
"http": thttp.NewTransport,
"grpc": tgrpc.NewTransport,
}
// used for default selection as the fall back