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