Package edsbalancer implements a balancer to handle EDS responses.
EDSBalancer does load balancing based on the EDS responses. Note that it doesn't implement the balancer interface. It's intended to be used by a high level balancer implementation.
The localities are picked as weighted round robin. A configurable child policy is used to manage endpoints in each locality.
NewXDSBalancer create a new EDSBalancer.
Close closes the balancer.
HandleChildPolicy updates the child balancers handling endpoints. Child policy is roundrobin by default. If the specified balancer is not installed, the old child balancer will be used.
HandleChildPolicy and HandleEDSResponse must be called by the same goroutine.
HandleEDSResponse handles the EDS response and creates/deletes localities and SubConns. It also handles drops.
HandleCDSResponse and HandleEDSResponse must be called by the same goroutine.
HandleSubConnStateChange handles the state change and update pickers accordingly.
UpdateBalancerState overrides balancer.ClientConn to wrap the picker in a dropPicker.