add all the registries as packages in go-plugins, replace etcd v2 with etcd v3
This commit is contained in:
commit
b5d39a8b06
17
service.go
Normal file
17
service.go
Normal 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...)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user