selector: update selector.Select to accept a slice of structs (#1764)

This commit is contained in:
ben-toogood
2020-06-30 15:51:26 +01:00
committed by GitHub
parent 6337c92cd0
commit b882ff3df9
6 changed files with 38 additions and 43 deletions

View File

@@ -21,9 +21,9 @@ type Selector interface {
// Options the selector is using
Options() Options
// Select a route from the pool using the strategy
Select([]*router.Route) (*router.Route, error)
Select([]router.Route) (*router.Route, error)
// Record the error returned from a route to inform future selection
Record(*router.Route, error) error
Record(router.Route, error) error
// Close the selector
Close() error
// String returns the name of the selector