mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-12 08:23:58 +02:00
17 lines
367 B
Go
17 lines
367 B
Go
// Package etcd provides an etcd v3 service registry
|
|
package etcd
|
|
|
|
import (
|
|
"github.com/micro/go-micro/v2/cmd"
|
|
"github.com/micro/go-micro/v2/registry"
|
|
"github.com/micro/go-micro/v2/registry/etcd"
|
|
)
|
|
|
|
func init() {
|
|
cmd.DefaultRegistries["etcd"] = etcd.NewRegistry
|
|
}
|
|
|
|
func NewRegistry(opts ...registry.Option) registry.Registry {
|
|
return etcd.NewRegistry(opts...)
|
|
}
|