15 lines
265 B
Go
15 lines
265 B
Go
package consul
|
|
|
|
import (
|
|
"github.com/micro/go-micro/cmd"
|
|
"github.com/micro/go-micro/registry"
|
|
)
|
|
|
|
func init() {
|
|
cmd.DefaultRegistries["consul"] = NewRegistry
|
|
}
|
|
|
|
func NewRegistry(opts ...registry.Option) registry.Registry {
|
|
return registry.NewRegistry(opts...)
|
|
}
|