grpc: google.golang.org/grpc/xds/internal Index | Files | Directories

package internal

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

Index

Package Files

internal.go

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.

type Locality Uses

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 Uses

func (lamk Locality) String() string

func (Locality) ToProto Uses

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

ToProto convert Locality to the proto representation.

Directories

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

Package internal imports 2 packages (graph) and is imported by 6 packages. Updated 2019-12-14. Refresh now. Tools for package owners.