grpc: Index | Files

package serviceconfig

import ""

Package serviceconfig contains utility functions to parse service config.


Package Files


type BalancerConfig Uses

type BalancerConfig struct {
    Name   string
    Config externalserviceconfig.LoadBalancingConfig

BalancerConfig wraps the name and config associated with one load balancing policy. It corresponds to a single entry of the loadBalancingConfig field from ServiceConfig.

It implements the json.Unmarshaler interface.

func (*BalancerConfig) UnmarshalJSON Uses

func (bc *BalancerConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

ServiceConfig contains a list of loadBalancingConfigs, each with a name and config. This method iterates through that list in order, and stops at the first policy that is supported. - If the config for the first supported policy is invalid, the whole service

config is invalid.

- If the list doesn't contain any supported policy, the whole service config

is invalid.

Package serviceconfig imports 5 packages (graph) and is imported by 7 packages. Updated 2020-08-12. Refresh now. Tools for package owners.