# Functions
CreateServer creates the UNINITIALIZED pd server with given configuration.
GetMembers return a slice of Members.
LogPDInfo prints the PD version information.
NewConfig creates a new config.
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.
ParseUrls parse a string into multiple urls.
PrepareJoinCluster sends MemberAdd command to PD cluster, and returns the initial configuration of the PD cluster.
PrintPDInfo prints the PD version information without log info.
StartMonitor calls systimeErrHandler if system time jump backward.
# Variables
Error instances.
Version information.
Version information.
Version information.
Version information.
# Structs
ClusterStatus saves some state information.
Config is the pd server configuration.
Handler is a helper to export methods to handle API/RPC requests.
RaftCluster is used for cluster config management.
Replication provides some help to do replication.
ReplicationConfig is the replication configuration.
ScheduleConfig is the schedule configuration.
SchedulerConfig is customized scheduler configuration.
Server is the pd server.
# Type aliases
CleanupFunc closes test pd server(s) and deletes any files left behind.
SchedulerConfigs is a slice of customized scheduler configuration.