1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-05 10:20:53 +02:00
go-micro/plugins/selector/registry/registry.go
2021-01-20 21:01:10 +00:00

17 lines
380 B
Go

// Package registry uses the go-micro registry for selection
package registry
import (
"github.com/asim/go-micro/v3/cmd"
"github.com/asim/go-micro/v3/selector"
)
func init() {
cmd.DefaultSelectors["registry"] = NewSelector
}
// NewSelector returns a new registry selector
func NewSelector(opts ...selector.Option) selector.Selector {
return selector.NewSelector(opts...)
}