utils

package
v0.0.0-...-9de8977 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMultiKeyspacesTSO

func CheckMultiKeyspacesTSO(
	ctx context.Context, as *assert.Assertions,
	clients []pd.Client, parallelAct func(),
)

CheckMultiKeyspacesTSO checks the correctness of TSO for multiple keyspaces.

func SetupClientWithAPIContext

func SetupClientWithAPIContext(
	ctx context.Context, re *require.Assertions, apiCtx pd.APIContext, endpoints []string, opts ...opt.ClientOption,
) pd.Client

SetupClientWithAPIContext creates a TSO client with api context name for test.

func SetupClientWithKeyspaceID

func SetupClientWithKeyspaceID(
	ctx context.Context, re *require.Assertions,
	keyspaceID uint32, endpoints []string, opts ...opt.ClientOption,
) pd.Client

SetupClientWithKeyspaceID creates a TSO client with the given keyspace id for test.

func WaitForAllTSOServiceAvailable

func WaitForAllTSOServiceAvailable(
	ctx context.Context, re *require.Assertions, clients []pd.Client,
)

WaitForAllTSOServiceAvailable waits for all clients to be served by the tso server side.

func WaitForMultiKeyspacesTSOAvailable

func WaitForMultiKeyspacesTSOAvailable(
	ctx context.Context, re *require.Assertions,
	keyspaceIDs []uint32, backendEndpoints []string,
) []pd.Client

WaitForMultiKeyspacesTSOAvailable waits for the given keyspaces being served by the tso server side

func WaitForTSOServiceAvailable

func WaitForTSOServiceAvailable(
	ctx context.Context, re *require.Assertions, client pd.Client,
)

WaitForTSOServiceAvailable waits for the pd client being served by the tso server side

Types

This section is empty.

Jump to

Keyboard shortcuts

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