Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GrpcHostname is the metadata key for specifying the grpc service name when sending xDS requests // from grpc to the traffic director. GrpcHostname = "TRAFFICDIRECTOR_GRPC_HOSTNAME" )
Functions ¶
This section is empty.
Types ¶
type LBConfig ¶ added in v1.24.0
type LBConfig struct { serviceconfig.LoadBalancingConfig // BalancerName represents the load balancer to use. BalancerName string // ChildPolicy represents the load balancing config for the child policy. ChildPolicy *LoadBalancingConfig // FallBackPolicy represents the load balancing config for the fallback. FallBackPolicy *LoadBalancingConfig }
LBConfig represents the loadBalancingConfig section of the service config for xDS balancers.
func (*LBConfig) MarshalJSON ¶ added in v1.24.0
MarshalJSON returns a JSON enconding of l.
func (*LBConfig) UnmarshalJSON ¶ added in v1.24.0
UnmarshalJSON parses the JSON-encoded byte slice in data and stores it in l. When unmarshalling, we iterate through the childPolicy/fallbackPolicy lists and select the first LB policy which has been registered.
type LoadBalancingConfig ¶ added in v1.24.0
type LoadBalancingConfig struct { Name string Config json.RawMessage }
LoadBalancingConfig represents a single load balancing config, stored in JSON format.
func (*LoadBalancingConfig) MarshalJSON ¶ added in v1.24.0
func (l *LoadBalancingConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns a JSON enconding of l.
func (*LoadBalancingConfig) UnmarshalJSON ¶ added in v1.24.0
func (l *LoadBalancingConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON parses the JSON-encoded byte slice in data and stores it in l.
Directories
¶
Path | Synopsis |
---|---|
Package balancer contains xds balancer implementation.
|
Package balancer contains xds balancer implementation. |
edsbalancer
Package edsbalancer implements a balancer to handle EDS responses.
|
Package edsbalancer implements a balancer to handle EDS responses. |
lrs
Package lrs implements load reporting service for xds balancer.
|
Package lrs implements load reporting service for xds balancer. |
orca
Package orca implements Open Request Cost Aggregation.
|
Package orca implements Open Request Cost Aggregation. |
Package client contains the implementation of the xds client used by grpc-lb-v2.
|
Package client contains the implementation of the xds client used by grpc-lb-v2. |
proto
|
|
Package resolver implements the xds resolver.
|
Package resolver implements the xds resolver. |
Click to show internal directories.
Click to hide internal directories.