Policy defines a policy we use for selecting upstreams.
| 10 | |
| 11 | // Policy defines a policy we use for selecting upstreams. |
| 12 | type Policy interface { |
| 13 | List([]*proxy.Proxy) []*proxy.Proxy |
| 14 | String() string |
| 15 | } |
| 16 | |
| 17 | // random is a policy that implements random upstream selection. |
| 18 | type random struct{} |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…