move this cruft
This commit is contained in:
parent
140febb081
commit
6ef3b81a18
9
client/client_selector.go
Normal file
9
client/client_selector.go
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
package client
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/micro/go-micro/registry"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Selector takes a Registry and returns a NodeSelector.
|
||||||
|
// Used by the client to initialise a selector.
|
||||||
|
type Selector func(registry.Registry) NodeSelector
|
@ -21,10 +21,6 @@ type NodeSelector interface {
|
|||||||
Reset()
|
Reset()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Selector takes a Registry and returns a NodeSelector.
|
|
||||||
// Used by the client to initialise a selector.
|
|
||||||
type Selector func(registry.Registry) NodeSelector
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rand.Seed(time.Now().UnixNano())
|
rand.Seed(time.Now().UnixNano())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user