mcs

package module
v0.0.0-...-79ec29c Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTSOClient

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

SetupTSOClient creates a TSO client for test.

func StartSingleResourceManagerTestServer

func StartSingleResourceManagerTestServer(ctx context.Context, re *require.Assertions, backendEndpoints, listenAddrs string) (*rm.Server, func())

StartSingleResourceManagerTestServer creates and starts a resource manager server with default config for testing.

func StartSingleTSOTestServer

func StartSingleTSOTestServer(ctx context.Context, re *require.Assertions, backendEndpoints, listenAddrs string) (*tso.Server, func())

StartSingleTSOTestServer creates and starts a tso server with default config for testing.

func WaitForPrimaryServing

func WaitForPrimaryServing(re *require.Assertions, serverMap map[string]bs.Server) string

WaitForPrimaryServing waits for one of servers being elected to be the primary/leader

func WaitForTSOServiceAvailable

func WaitForTSOServiceAvailable(ctx context.Context, pdClient pd.Client) error

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