This commit is contained in:
Asim Aslam
2020-01-29 22:40:43 +00:00
parent 1be8258721
commit 49b86c56e3
8 changed files with 12 additions and 8 deletions

View File

@@ -2,11 +2,13 @@ package micro
import (
"github.com/micro/go-micro/client"
"github.com/micro/go-micro/debug/trace"
"github.com/micro/go-micro/server"
"github.com/micro/go-micro/store"
// set defaults
gcli "github.com/micro/go-micro/client/grpc"
memTrace "github.com/micro/go-micro/debug/trace/memory"
gsrv "github.com/micro/go-micro/server/grpc"
memStore "github.com/micro/go-micro/store/memory"
)
@@ -18,4 +20,6 @@ func init() {
server.DefaultServer = gsrv.NewServer()
// default store
store.DefaultStore = memStore.NewStore()
// set default trace
trace.DefaultTracer = memTrace.NewTracer()
}