package internal

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

Package internal contains helpers for xDS and LRS clients.

Index

Functions

func NodeProto

func NodeProto(n clients.Node) *v3corepb.Node

NodeProto returns a protobuf representation of clients.Node n.

This function is intended to be used by the client implementation to convert the user-provided Node configuration to its protobuf representation.

func ServerIdentifierString

func ServerIdentifierString(si clients.ServerIdentifier) string

ServerIdentifierString returns a string representation of the clients.ServerIdentifier si.

WARNING: This method is primarily intended for logging and testing purposes. The output returned by this method is not guaranteed to be stable and may change at any time. Do not rely on it for production use.

Source Files

internal.go

Directories

PathSynopsis
xds/internal/clients/internal/backoffPackage backoff implements the backoff strategy for clients.
xds/internal/clients/internal/bufferPackage buffer provides an implementation of an unbounded buffer.
xds/internal/clients/internal/prettyPackage pretty defines helper functions to pretty-print structs for logging.
xds/internal/clients/internal/syncutilPackage syncutil implements additional synchronization primitives built upon the sync package.
xds/internal/clients/internal/testutilsPackage testutils contains testing helpers for xDS and LRS clients.
xds/internal/clients/internal/testutils/e2ePackage e2e provides utilities for end2end testing of xDS and LRS clients functionalities.
xds/internal/clients/internal/testutils/fakeserverPackage fakeserver provides a fake implementation of the management server.
Version
v1.73.0-dev
Published
Apr 3, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
4 hours ago

Tools for package owners.