set grpc by default (#1070)
This commit is contained in:
parent
04dfe4e867
commit
b6915f0898
17
defaults.go
Normal file
17
defaults.go
Normal file
@ -0,0 +1,17 @@
|
||||
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()
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user