mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
f23638c036
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
26 lines
679 B
Go
26 lines
679 B
Go
package micro
|
|
|
|
import (
|
|
"github.com/micro/go-micro/v2/client"
|
|
"github.com/micro/go-micro/v2/debug/trace"
|
|
"github.com/micro/go-micro/v2/server"
|
|
"github.com/micro/go-micro/v2/store"
|
|
|
|
// set defaults
|
|
gcli "github.com/micro/go-micro/v2/client/grpc"
|
|
memTrace "github.com/micro/go-micro/v2/debug/trace/memory"
|
|
gsrv "github.com/micro/go-micro/v2/server/grpc"
|
|
memStore "github.com/micro/go-micro/v2/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()
|
|
}
|