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
|
|
|
|
}
|
|
|
|
|
2016-03-16 01:20:21 +03:00
|
|
|
func NewRegistry(opts ...registry.Option) registry.Registry {
|
|
|
|
return registry.NewRegistry(opts...)
|
2016-03-14 13:45:38 +03:00
|
|
|
}
|