ParseConfig parses a child config list and returns a LB config for the gracefulswitch Balancer. cfg is expected to be a json.RawMessage containing a JSON array of LB policy names + configs as the format of the "loadBalancingConfig" field in ServiceConfig. It returns a type that should be passed to
(cfg json.RawMessage)
| 603 | // ServiceConfig. It returns a type that should be passed to |
| 604 | // UpdateClientConnState in the BalancerConfig field. |
| 605 | func ParseConfig(cfg json.RawMessage) (serviceconfig.LoadBalancingConfig, error) { |
| 606 | return gracefulswitch.ParseConfig(cfg) |
| 607 | } |