In SelectedHost, one of the methods return an unexposed interface: link. It would have been solvable perhaps, if token didn't use itself in the type definition:
type token interface {
fmt.Stringer
Less(token) bool
}
Can we please fix this weird thing, effectively prohibiting a custom host selection policy seems like a weird limitation.
We wanted to implement our own host selection policy because the existing ones don't satisfy our requirements, and realised it's basically impossible.
The problem is with type SelectedHost that must be returned by NextHost.
In SelectedHost, one of the methods return an unexposed interface: link. It would have been solvable perhaps, if
token
didn't use itself in the type definition:Can we please fix this weird thing, effectively prohibiting a custom host selection policy seems like a weird limitation.