internal

package
v1.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package internal contains functions/structs shared by xds balancers/resolvers.

Index

Constants

View Source
const XDSClientID = clientID("xdsClientID")

XDSClientID is the attributes key used to pass the address of the xdsClient object shared between the resolver and the balancer. The xdsClient object is created by the resolver and passed to the balancer.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalityID added in v1.30.0

type LocalityID struct {
	Region  string
	Zone    string
	SubZone string
}

LocalityID is xds.Locality without XXX fields, so it can be used as map keys.

xds.Locality cannot be map keys because one of the XXX fields is a slice.

This struct should only be used as map keys. Use the proto message directly in all other places.

func (LocalityID) String added in v1.30.0

func (l LocalityID) String() string

Directories

Path Synopsis
Package balancer installs all the xds balancers.
Package balancer installs all the xds balancers.
balancergroup
Package balancergroup implements a utility struct to bind multiple balancers into one balancer.
Package balancergroup implements a utility struct to bind multiple balancers into one balancer.
cdsbalancer
Package cdsbalancer implements a balancer to handle CDS responses.
Package cdsbalancer implements a balancer to handle CDS responses.
edsbalancer
Package edsbalancer contains EDS balancer implementation.
Package edsbalancer contains EDS balancer implementation.
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.
weightedtarget
Package weightedtarget implements the weighted_target balancer.
Package weightedtarget implements the weighted_target balancer.
weightedtarget/weightedaggregator
Package weightedaggregator implements state aggregator for weighted_target balancer.
Package weightedaggregator implements state aggregator for weighted_target balancer.
xdsrouting
Package xdsrouting implements the routing balancer for xds.
Package xdsrouting implements the routing balancer for xds.
Package client implementation a full fledged gRPC client for the xDS API used by the xds resolver and balancer implementations.
Package client implementation a full fledged gRPC client for the xDS API used by the xds resolver and balancer implementations.
bootstrap
Package bootstrap provides the functionality to initialize certain aspects of an xDS client by reading a bootstrap file.
Package bootstrap provides the functionality to initialize certain aspects of an xDS client by reading a bootstrap file.
Package resolver implements the xds resolver, that does LDS and RDS to find the cluster to use.
Package resolver implements the xds resolver, that does LDS and RDS to find the cluster to use.
Package testutils provides utility types, for use in xds tests.
Package testutils provides utility types, for use in xds tests.
fakeclient
Package fakeclient provides a fake implementation of an xDS client.
Package fakeclient provides a fake implementation of an xDS client.
fakeserver
Package fakeserver provides a fake implementation of an xDS server.
Package fakeserver provides a fake implementation of an xDS server.
Package version defines supported xDS API versions.
Package version defines supported xDS API versions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL