package rls

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

Package rls implements the RLS cluster specifier plugin.

Index

Functions

func RegisterForTesting

func RegisterForTesting()

RegisterForTesting registers the RLS Cluster Specifier Plugin for testing purposes, regardless of the XDSRLS environment variable. This is needed because there is no way to set the XDSRLS environment variable to true in a test before init() in this package is run.

TODO: Remove this function once the RLS env var is removed.

func UnregisterForTesting

func UnregisterForTesting()

UnregisterForTesting unregisters the RLS Cluster Specifier Plugin for testing purposes. This is needed because there is no way to unregister the RLS Cluster Specifier Plugin after registering it solely for testing purposes using rls.RegisterForTesting().

TODO: Remove this function once the RLS env var is removed.

Source Files

rls.go

Version
v1.47.0-dev
Published
Apr 6, 2022
Platform
linux/amd64
Imports
11 packages
Last checked
4 hours ago

Tools for package owners.