commit b5d39a8b06c39afe42f15fdd0843cb482f909307 Author: Asim Aslam Date: Sun Nov 10 19:54:23 2019 +0000 add all the registries as packages in go-plugins, replace etcd v2 with etcd v3 diff --git a/service.go b/service.go new file mode 100644 index 0000000..1e82059 --- /dev/null +++ b/service.go @@ -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...) +}