2015-12-09 19:23:16 +00:00
|
|
|
package random
|
|
|
|
|
2015-12-09 19:38:50 +00:00
|
|
|
import (
|
|
|
|
"github.com/micro/go-micro/cmd"
|
|
|
|
"github.com/micro/go-micro/selector"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2016-01-01 01:29:40 +00:00
|
|
|
cmd.DefaultSelectors["random"] = NewSelector
|
2015-12-09 19:38:50 +00:00
|
|
|
}
|
2015-12-09 19:23:16 +00:00
|
|
|
|
|
|
|
func NewSelector(opts ...selector.Option) selector.Selector {
|
|
|
|
return selector.NewSelector(opts...)
|
|
|
|
}
|