# 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
Package core defines core characteristics of the server.
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
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
CheckPDVersion checks if PD needs to be upgraded.
CreateServer creates the UNINITIALIZED pd server with given configuration.
LogPDInfo prints the PD version information.
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.
PrintConfigCheckMsg prints the message about configuration checks.
PrintPDInfo prints the PD version information without log info.
StartMonitor calls systimeErrHandler if system time jump backward.
# Constants
Component is used to represent the kind of component in config manager.
CorePath the core group, is at REST path `/pd/api/v1`.
ExtensionsPath the named groups are REST at `/pd/apis/{GROUP_NAME}/{Version}`.
# Variables
ConfigCheckInterval represents the time interval of running config check.
EnableZap enable the zap logger in embed etcd.
ErrAddOperator is error info for already have an operator when adding operator.
ErrNotLeader is returned when current server is not the leader and not possible to process request.
gRPC errors.
ErrOperatorNotFound is error info for operator not found.
ErrPluginNotFound is error info for plugin not found.
ErrRegionAbnormalPeer is error info for region has abonormal peer.
ErrRegionNotAdjacent is error info for region not adjacent.
ErrRegionNotFound is error info for region not found.
ErrServerNotStarted is error info for server not started.
ErrStoreNotFound is error info for store not found.
EtcdStartTimeout the timeout of the startup etcd.
Version information.
Version information.
Version information.
Version information.
SchedulerConfigHandlerPath is the api router path of the schedule config handler.
# Structs
Handler is a helper to export methods to handle API/RPC requests.
Server is the pd server.
ServiceGroup used to register the service.
# Type aliases
CleanupFunc closes test pd server(s) and deletes any files left behind.
HandlerBuilder builds a server HTTP handler.