2019-12-30 21:33:21 +03:00
|
|
|
package micro
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/micro/go-micro/client"
|
2020-01-30 01:40:43 +03:00
|
|
|
"github.com/micro/go-micro/debug/trace"
|
2019-12-30 21:33:21 +03:00
|
|
|
"github.com/micro/go-micro/server"
|
2020-01-10 22:13:55 +03:00
|
|
|
"github.com/micro/go-micro/store"
|
2019-12-30 21:33:21 +03:00
|
|
|
|
|
|
|
// set defaults
|
|
|
|
gcli "github.com/micro/go-micro/client/grpc"
|
2020-01-30 01:40:43 +03:00
|
|
|
memTrace "github.com/micro/go-micro/debug/trace/memory"
|
2019-12-30 21:33:21 +03:00
|
|
|
gsrv "github.com/micro/go-micro/server/grpc"
|
2020-01-10 22:13:55 +03:00
|
|
|
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()
|
2020-01-10 22:13:55 +03:00
|
|
|
// default store
|
|
|
|
store.DefaultStore = memStore.NewStore()
|
2020-01-30 01:40:43 +03:00
|
|
|
// set default trace
|
|
|
|
trace.DefaultTracer = memTrace.NewTracer()
|
2019-12-30 21:33:21 +03:00
|
|
|
}
|