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