Add flag for registry service client
This commit is contained in:
		| @@ -30,6 +30,7 @@ import ( | ||||
| 	"github.com/micro/go-micro/registry/gossip" | ||||
| 	"github.com/micro/go-micro/registry/mdns" | ||||
| 	rmem "github.com/micro/go-micro/registry/memory" | ||||
| 	regSrv "github.com/micro/go-micro/registry/service" | ||||
|  | ||||
| 	// selectors | ||||
| 	"github.com/micro/go-micro/client/selector" | ||||
| @@ -190,10 +191,12 @@ var ( | ||||
| 	} | ||||
|  | ||||
| 	DefaultRegistries = map[string]func(...registry.Option) registry.Registry{ | ||||
| 		"consul": consul.NewRegistry, | ||||
| 		"gossip": gossip.NewRegistry, | ||||
| 		"mdns":   mdns.NewRegistry, | ||||
| 		"memory": rmem.NewRegistry, | ||||
| 		"go.micro.registry": regSrv.NewRegistry, | ||||
| 		"service":           regSrv.NewRegistry, | ||||
| 		"consul":            consul.NewRegistry, | ||||
| 		"gossip":            gossip.NewRegistry, | ||||
| 		"mdns":              mdns.NewRegistry, | ||||
| 		"memory":            rmem.NewRegistry, | ||||
| 	} | ||||
|  | ||||
| 	DefaultSelectors = map[string]func(...selector.Option) selector.Selector{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user