mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
Add packages for the defaults
This commit is contained in:
14
registry/consul/consul.go
Normal file
14
registry/consul/consul.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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...)
|
||||
}
|
Reference in New Issue
Block a user