micro/registry/consul/consul.go

15 lines
288 B
Go
Raw Normal View History

2016-03-14 13:45:38 +03:00
package consul
import (
"github.com/micro/go-micro/cmd"
"github.com/micro/go-micro/registry"
)
func init() {
cmd.DefaultRegistries["consul"] = NewRegistry
}
func NewRegistry(addrs []string, opts ...registry.Option) registry.Registry {
return registry.NewRegistry(addrs, opts...)
}