package internal

import "google.golang.org/grpc/xds/internal"

Index

Constants

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.

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.

Source Files

internal.go

Directories

PathSynopsis
xds/internal/balancerPackage balancer contains xds balancer implementation.
xds/internal/balancer/cdsbalancerPackage cdsbalancer implements a balancer to handle CDS responses.
xds/internal/balancer/edsbalancerPackage edsbalancer implements a balancer to handle EDS responses.
xds/internal/balancer/lrsPackage lrs implements load reporting service for xds balancer.
xds/internal/balancer/orcaPackage orca implements Open Request Cost Aggregation.
xds/internal/clientPackage client implementation a full fledged gRPC client for the xDS API used by the xds resolver and balancer implementations.
xds/internal/client/bootstrapPackage bootstrap provides the functionality to initialize certain aspects of an xDS client by reading a bootstrap file.
xds/internal/client/fakexdsPackage fakexds provides a very basic fake implementation of the xDS server for unit testing purposes.
xds/internal/protoPackage proto is for go generate.
xds/internal/proto/udpa
xds/internal/proto/udpa/data
xds/internal/proto/udpa/data/orca
xds/internal/proto/udpa/data/orca/v1
xds/internal/proto/udpa/service
xds/internal/proto/udpa/service/orca
xds/internal/proto/udpa/service/orca/v1
xds/internal/proto/udpa/type
xds/internal/proto/udpa/type/v1
xds/internal/resolverPackage resolver implements the xds resolver.
xds/internal/resolver/oldPackage old implements the old xds resolver.
xds/internal/testutilsPackage testutils provides utility types, for use in xds tests.
xds/internal/testutils/fakexdsPackage fakexds provides fake implementation of multiple types, for use in xds tests.
Version
v1.27.0-pre
Published
Dec 17, 2019
Platform
darwin/amd64
Imports
2 packages
Last checked
5 minutes ago

Tools for package owners.