internal

package
v1.23.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
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"
)

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.

func (Locality) String

func (lamk Locality) String() string

func (Locality) ToProto

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

ToProto convert Locality to the proto representation.

Directories

Path Synopsis
Package balancer contains xds balancer implementation.
Package balancer contains xds balancer implementation.
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.
proto

Jump to

Keyboard shortcuts

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