package serviceconfig
Import Path
google.golang.org/grpc/internal/serviceconfig (on go.dev)
Dependency Relation
imports 5 packages, and imported by one package
Involved Source Files
Package serviceconfig contains utility functions to parse service config.
Package-Level Type Names (total 2, in which 1 are exported)
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.
https://github.com/grpc/grpc-proto/blob/54713b1e8bc6ed2d4f25fb4dff527842150b91b2/grpc/service_config/service_config.proto#L247
Config externalserviceconfig.LoadBalancingConfig
Name string
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.
*T : encoding/json.Unmarshaler
Package-Level Variables (only one, which is unexported)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |