This commit is contained in:
Asim Aslam 2019-12-30 17:29:45 +00:00
parent e0078bbcd5
commit f40d4578d5

View File

@ -28,8 +28,8 @@ import (
// registries // registries
"github.com/micro/go-micro/registry" "github.com/micro/go-micro/registry"
"github.com/micro/go-micro/registry/etcd" "github.com/micro/go-micro/registry/etcd"
"github.com/micro/go-micro/registry/mdns"
kreg "github.com/micro/go-micro/registry/kubernetes" kreg "github.com/micro/go-micro/registry/kubernetes"
"github.com/micro/go-micro/registry/mdns"
rmem "github.com/micro/go-micro/registry/memory" rmem "github.com/micro/go-micro/registry/memory"
regSrv "github.com/micro/go-micro/registry/service" regSrv "github.com/micro/go-micro/registry/service"
@ -207,10 +207,10 @@ var (
} }
DefaultRegistries = map[string]func(...registry.Option) registry.Registry{ DefaultRegistries = map[string]func(...registry.Option) registry.Registry{
"service": regSrv.NewRegistry, "service": regSrv.NewRegistry,
"etcd": etcd.NewRegistry, "etcd": etcd.NewRegistry,
"mdns": mdns.NewRegistry, "mdns": mdns.NewRegistry,
"memory": rmem.NewRegistry, "memory": rmem.NewRegistry,
"kubernetes": kreg.NewRegistry, "kubernetes": kreg.NewRegistry,
} }