internal

package
v1.22.2 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 added in v1.22.0

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 added in v1.22.0

func (lamk Locality) String() string

func (Locality) ToProto added in v1.22.0

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

ToProto convert Locality to the proto representation.

Jump to

Keyboard shortcuts

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