select_backend_index

Function select_backend_index 

Source
async fn select_backend_index(
    load_balancer_algorithm: &LoadBalancerAlgorithmInner,
    backends: &[(UpstreamInner, Option<usize>, Option<Duration>)],
) -> usize
Expand description

Selects an index for a backend server based on the load balancing algorithm.