micro/selector/random/random.go

15 lines
257 B
Go
Raw Normal View History

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() {
cmd.Selectors["random"] = NewSelector
}
2015-12-09 22:23:16 +03:00
func NewSelector(opts ...selector.Option) selector.Selector {
return selector.NewSelector(opts...)
}