add all the registries as packages in go-plugins, replace etcd v2 with etcd v3

This commit is contained in:
Asim Aslam 2019-11-10 19:54:23 +00:00 committed by Vasiliy Tolstov
commit b5d39a8b06

17
service.go Normal file
View File

@ -0,0 +1,17 @@
// Package service uses the registry service
package service
import (
"github.com/micro/go-micro/config/cmd"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/registry/service"
)
func init() {
cmd.DefaultRegistries["service"] = NewRegistry
}
// NewRegistry returns a new registry service client
func NewRegistry(opts ...registry.Option) registry.Registry {
return service.NewRegistry(opts...)
}