micro/defaults.go
Asim Aslam 49b86c56e3 go fmt
2020-01-29 22:40:43 +00:00

26 lines
655 B
Go

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"
)
func init() {
// default client
client.DefaultClient = gcli.NewClient()
// default server
server.DefaultServer = gsrv.NewServer()
// default store
store.DefaultStore = memStore.NewStore()
// set default trace
trace.DefaultTracer = memTrace.NewTracer()
}