internal

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

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 Locality

type Locality struct {
	Region  string
	Zone    string
	SubZone string
}

Locality 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.

TODO: rename to LocalityID.

func (Locality) String

func (lamk Locality) String() string

func (Locality) ToProto

func (lamk Locality) ToProto() *corepb.Locality

ToProto convert Locality to the proto representation.

Directories

Path Synopsis
Package balancer contains xds balancer implementation.
Package balancer contains xds balancer implementation.
cdsbalancer
Package cdsbalancer implements a balancer to handle CDS responses.
Package cdsbalancer implements a balancer to handle CDS responses.
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 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.
fakexds
Package fakexds provides a very basic fake implementation of the xDS server for unit testing purposes.
Package fakexds provides a very basic fake implementation of the xDS server for unit testing purposes.
Package proto is for go generate.
Package proto is for go generate.
Package resolver implements the xds resolver.
Package resolver implements the xds resolver.
old
Package old implements the old xds resolver.
Package old implements the old xds resolver.
Package testutils provides utility types, for use in xds tests.
Package testutils provides utility types, for use in xds tests.
fakexds
Package fakexds provides fake implementation of multiple types, for use in xds tests.
Package fakexds provides fake implementation of multiple types, for use in xds tests.

Jump to

Keyboard shortcuts

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