micro/defaults.go
2019-12-30 18:33:21 +00:00

18 lines
345 B
Go

package micro
import (
"github.com/micro/go-micro/client"
"github.com/micro/go-micro/server"
// set defaults
gcli "github.com/micro/go-micro/client/grpc"
gsrv "github.com/micro/go-micro/server/grpc"
)
func init() {
// default client
client.DefaultClient = gcli.NewClient()
// default server
server.DefaultServer = gsrv.NewServer()
}