Documentation

Overview

Package xds contains xds implementation. Users need to import this package to get all xds functionality.

See https://github.com/grpc/grpc-go/tree/master/examples/features/xds for example.

Source Files

Directories

Path Synopsis
internal Package internal contains functions/structs shared by xds balancers/resolvers.
internal/balancer Package balancer installs all the xds balancers.
internal/balancer/balancergroup Package balancergroup implements a utility struct to bind multiple balancers into one balancer.
internal/balancer/cdsbalancer Package cdsbalancer implements a balancer to handle CDS responses.
internal/balancer/edsbalancer Package edsbalancer contains EDS balancer implementation.
internal/balancer/lrs Package lrs implements load reporting balancer for xds.
internal/balancer/orca Package orca implements Open Request Cost Aggregation.
internal/balancer/weightedtarget Package weightedtarget implements the weighted_target balancer.
internal/balancer/weightedtarget/weightedaggregator Package weightedaggregator implements state aggregator for weighted_target balancer.
internal/balancer/xdsrouting Package xdsrouting implements the routing balancer for xds.
internal/client Package client implementation a full fledged gRPC client for the xDS API used by the xds resolver and balancer implementations.
internal/client/bootstrap Package bootstrap provides the functionality to initialize certain aspects of an xDS client by reading a bootstrap file.
internal/client/load Package load provides functionality to record and maintain load data.
internal/client/v2 Package v2 provides xDS v2 transport protocol specific functionality.
internal/client/v3 Package v3 provides xDS v3 transport protocol specific functionality.
internal/resolver Package resolver implements the xds resolver, that does LDS and RDS to find the cluster to use.
internal/testutils Package testutils provides utility types, for use in xds tests.
internal/testutils/fakeclient Package fakeclient provides a fake implementation of an xDS client.
internal/testutils/fakeserver Package fakeserver provides a fake implementation of an xDS server.
internal/version Package version defines constants to distinguish between supported xDS API versions.