micro/defaults.go

22 lines
491 B
Go
Raw Normal View History

2019-12-30 21:33:21 +03:00
package micro
import (
"github.com/micro/go-micro/client"
"github.com/micro/go-micro/server"
"github.com/micro/go-micro/store"
2019-12-30 21:33:21 +03:00
// set defaults
gcli "github.com/micro/go-micro/client/grpc"
gsrv "github.com/micro/go-micro/server/grpc"
memStore "github.com/micro/go-micro/store/memory"
2019-12-30 21:33:21 +03:00
)
func init() {
// default client
client.DefaultClient = gcli.NewClient()
// default server
server.DefaultServer = gsrv.NewServer()
// default store
store.DefaultStore = memStore.NewStore()
2019-12-30 21:33:21 +03:00
}