1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00
go-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()
}