package
9.0.0-alpha+incompatible
Repository: https://github.com/tikv/pd.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CheckAndGetPDVersion checks and returns the PD version.
CheckPDVersionWithClusterVersion checks if PD needs to be upgraded by comparing the PD version with the cluster version.
CreateMockHandler creates a mock handler for test.
CreateServer creates the UNINITIALIZED pd server with given configuration.
MustWaitLeader return the leader until timeout.
NewTestMultiConfig is only for test to create multiple pd configurations.
NewTestServer creates a pd server for testing.
NewTestSingleConfig is only for test to create one pd.

# Constants

APIServiceMode represents that server is in API service mode.
PDMode represents that server is in PD mode.

# Variables

EtcdStartTimeout the timeout of the startup etcd.
SchedulerConfigHandlerPath is the api router path of the schedule config handler.

# Structs

GrpcServer wraps Server to provide grpc service.
Handler is a helper to export methods to handle API/RPC requests.
HistoryHotRegionsRequest wrap request condition from tidb.
KeyspaceServer wraps GrpcServer to provide keyspace service.
Server is the pd server.

# Type aliases

HandlerBuilder builds a server HTTP handler.