...

Package xds

import "google.golang.org/grpc/internal/xds"
Overview
Index
Subdirectories

Overview ▾

Package xds contains methods to Get/Set handshake cluster names. It is separated out from the top level /internal package to avoid circular dependencies.

func GetXDSHandshakeClusterName

func GetXDSHandshakeClusterName(attr *attributes.Attributes) (string, bool)

GetXDSHandshakeClusterName returns cluster name stored in attr.

func SetXDSHandshakeClusterName

func SetXDSHandshakeClusterName(addr resolver.Address, clusterName string) resolver.Address

SetXDSHandshakeClusterName returns a copy of addr in which the Attributes field is updated with the cluster name.

Subdirectories

Name Synopsis
..