package
1.51.4
Repository: https://github.com/lfch/grpc.git
Documentation: pkg.go.dev

# Packages

Package bootstrap provides the functionality to initialize certain aspects of an xDS client by reading a bootstrap file.
Package controller contains implementation to connect to the control plane.
No description provided by the author
Package load provides functionality to record and maintain load data.
Package pubsub implements a utility type to maintain resource watchers and the updates.
Package xdsresource contains functions to proto xds updates (unmarshal from proto), and types for the resource updates.

# Functions

ClearAllCountersForTesting clears all the counters.
ClearCounterForTesting clears the counter for the service.
FromResolverState returns the Client from state, or nil if not present.
GetClusterRequestsCounter returns the ClusterRequestsCounter with the provided serviceName.
New returns a new xDS client configured by the bootstrap file specified in env variable GRPC_XDS_BOOTSTRAP or GRPC_XDS_BOOTSTRAP_CONFIG.
NewWithBootstrapContentsForTesting returns an xDS client for this config, separate from the global singleton.
NewWithConfig returns a new xDS client configured by the given config.
NewWithConfigForTesting returns an xDS client for the specified bootstrap config, separate from the global singleton.
SetClient sets c in state and returns the new state.

# Structs

ClusterRequestsCounter is used to track the total inflight requests for a service with the provided name.

# Interfaces

XDSClient is a full fledged gRPC client which queries a set of discovery APIs (collectively termed as xDS) on a remote management server, to discover various dynamic resources.