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

package internal

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

Index

Package Files

const.go internal.go

Variables

var (
    // GrpcHostname is the metadata key for specifying the grpc service name when sending xDS requests
    // from grpc to the traffic director.
    GrpcHostname = "TRAFFICDIRECTOR_GRPC_HOSTNAME"
)

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.

func (Locality) String Uses

func (lamk Locality) String() string

func (Locality) ToProto Uses

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

ToProto convert Locality to the proto representation.

Directories

PathSynopsis
balancerPackage balancer contains xds balancer implementation.
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.
proto/envoy/api/v2/auth/cert
proto/envoy/api/v2/cds
proto/envoy/api/v2/cluster/circuit_breaker
proto/envoy/api/v2/cluster/outlier_detection
proto/envoy/api/v2/core/address
proto/envoy/api/v2/core/base
proto/envoy/api/v2/core/config_source
proto/envoy/api/v2/core/grpc_service
proto/envoy/api/v2/core/health_check
proto/envoy/api/v2/core/protocol
proto/envoy/api/v2/discovery
proto/envoy/api/v2/eds
proto/envoy/api/v2/endpoint/endpoint
proto/envoy/api/v2/endpoint/load_report
proto/envoy/service/discovery/v2/ads
proto/envoy/service/load_stats/v2/lrs
proto/envoy/type/percent
proto/envoy/type/range
proto/udpa/data/orca/v1/orca_load_report
proto/validate

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