1
0
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:
Asim
2016-03-14 10:45:38 +00:00
parent c0b25e7a65
commit 71764564e7
5 changed files with 60 additions and 0 deletions

14
registry/consul/consul.go Normal file
View 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...)
}