Documentation ¶
Overview ¶
Package xdslbregistry provides a registry of converters that convert proto from load balancing configuration, defined by the xDS API spec, to JSON load balancing configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToServiceConfig ¶
func ConvertToServiceConfig(lbPolicy *v3clusterpb.LoadBalancingPolicy, depth int) (json.RawMessage, error)
ConvertToServiceConfig converts a proto Load Balancing Policy configuration into a json string. Returns an error if:
- no supported policy found
- there is more than 16 layers of recursion in the configuration
- a failure occurs when converting the policy
func Register ¶
Register registers the converter to the map keyed on a proto type. Must be called at init time. Not thread safe.
func SetRegistry ¶
SetRegistry sets the xDS LB registry. Must be called at init time. Not thread safe.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package converter provides converters to convert proto load balancing configuration, defined by the xDS API spec, to JSON load balancing configuration.
|
Package converter provides converters to convert proto load balancing configuration, defined by the xDS API spec, to JSON load balancing configuration. |
Click to show internal directories.
Click to hide internal directories.