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

package internal

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

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

Index

Package Files

internal.go

type LocalityID Uses

type LocalityID struct {
    Region  string `json:"region,omitempty"`
    Zone    string `json:"zone,omitempty"`
    SubZone string `json:"subZone,omitempty"`
}

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.

func LocalityIDFromString Uses

func LocalityIDFromString(s string) (ret LocalityID, _ error)

LocalityIDFromString converts a json representation of locality, into a LocalityID struct.

func (LocalityID) ToString Uses

func (l LocalityID) ToString() (string, error)

ToString generates a string representation of LocalityID by marshalling it into json. Not calling it String() so printf won't call it.

Directories

PathSynopsis
balancerPackage balancer installs all the xds balancers.
balancer/balancergroupPackage balancergroup implements a utility struct to bind multiple balancers into one balancer.
balancer/cdsbalancerPackage cdsbalancer implements a balancer to handle CDS responses.
balancer/clustermanagerPackage clustermanager implements the cluster manager LB policy for xds.
balancer/edsbalancerPackage edsbalancer contains EDS balancer implementation.
balancer/lrsPackage lrs implements load reporting balancer for xds.
balancer/orcaPackage orca implements Open Request Cost Aggregation.
balancer/priorityPackage priority implements the priority balancer.
balancer/weightedtargetPackage weightedtarget implements the weighted_target balancer.
balancer/weightedtarget/weightedaggregatorPackage weightedaggregator implements state aggregator for weighted_target balancer.
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/loadPackage load provides functionality to record and maintain load data.
client/v2Package v2 provides xDS v2 transport protocol specific functionality.
client/v3Package v3 provides xDS v3 transport protocol specific functionality.
envPackage env acts a single source of definition for all environment variables related to the xDS implementation in gRPC.
resolverPackage resolver implements the xds resolver, that does LDS and RDS to find the cluster to use.
testutilsPackage testutils provides utility types, for use in xds tests.
testutils/e2ePackage e2e provides utilities for end2end testing of xDS functionality.
testutils/fakeclientPackage fakeclient provides a fake implementation of an xDS client.
testutils/fakeserverPackage fakeserver provides a fake implementation of the management server.
versionPackage version defines constants to distinguish between supported xDS API versions.

Package internal imports 2 packages (graph) and is imported by 12 packages. Updated 2021-01-21. Refresh now. Tools for package owners.