mcs

package module
v0.0.0-...-cf22c04 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMultiKeyspacesTSO

func CheckMultiKeyspacesTSO(
	ctx context.Context, re *require.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 ...pd.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 ...pd.ClientOption,
) pd.Client

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

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