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

# Functions

AllocIDPath returns the alloc id path.
AppendToRootPath appends the given key to the rootPath.
ClusterBootstrapTimeKey returns the path to save the cluster bootstrap timestamp.
ClusterID returns the cluster ID.
ClusterRootPath appends the `ClusterPath` to the rootPath.
ConfigPath returns the path to save the PD config.
EncodeKeyspaceID from uint32 to string.
ExpectedPrimaryPath returns the expected_primary path.
ExternalTimestampPath returns the external timestamp path.
ExtractStoreIDFromPath extracts the store ID from the given path.
GCSafePointPath returns the GC safe point key path.
GCSafePointServicePath returns the GC safe point service key path with the given service ID.
GCSafePointServicePrefixPath returns the GC safe point service key path prefix.
GCSafePointV2Path is the storage path of gc safe point v2.
GCSafePointV2Prefix is the path prefix to all gc safe point v2.
GetCompiledKeyspaceGroupIDRegexp returns the compiled regular expression for matching keyspace group id.
GetCompiledNonDefaultIDRegexp returns the compiled regular expression for matching non-default keyspace group id.
KeyspaceAllocIDPath returns the keyspace alloc id path.
KeyspaceGroupGlobalTSPath constructs the timestampOracle path prefix for Global TSO, which is: 1.
KeyspaceGroupIDPath returns the path to keyspace id from the given name.
KeyspaceGroupIDPrefix returns the prefix of keyspace group id.
KeyspaceIDPath returns the path to keyspace id from the given name.
KeyspaceMetaPath returns the path to the given keyspace's metadata.
KeyspaceMetaPrefix returns the prefix of keyspaces' metadata.
LeaderPath returns the leader path.
LegacyRootPath returns the root path of legacy pd service.
MemberBinaryDeployPath returns the member binary deploy path.
MemberBinaryVersionPath returns the member binary version path.
MemberGitHashPath returns the member git hash path.
MemberLeaderPriorityPath returns the member leader priority path.
MinResolvedTSPath returns the min resolved ts path.
PDRootPath returns the PD root path.
Prefix returns the parent directory of the given path.
RegionLabelKeyPath returns the path to save the region label with the given rule key.
RegionLabelPathPrefix returns the path prefix to save the region label.
RegionPath returns the region meta info key path with the given region ID.
RegistryPath returns the full path to store microservice addresses.
ReplicationModePath returns the path to save the replication mode with the given mode.
ResetClusterID resets the cluster ID to 0.
ResourceGroupSettingKeyPath returns the path to save the resource group settings.
ResourceGroupStateKeyPath returns the path to save the resource group states.
RuleCommonPathPrefix returns the path prefix to save the placement rule common config.
RuleGroupIDPath returns the path to save the placement rule group with the given group ID.
RuleGroupPathPrefix returns the path prefix to save the placement rule groups.
RuleKeyPath returns the path to save the placement rule with the given rule key.
RulesPathPrefix returns the path prefix to save the placement rules.
SchedulerConfigPath returns the path to save the scheduler config.
SchedulerConfigPathPrefix returns the path prefix to save the scheduler config.
ServicePath returns the path to store microservice addresses.
ServiceSafePointV2Path is the storage path of service safe point v2.
ServiceSafePointV2Prefix is the path prefix of all service safe point that belongs to a specific keyspace.
SetClusterID sets the cluster ID.
StoreLeaderWeightPath returns the store leader weight key path with the given store ID.
StorePath returns the store meta info key path with the given store ID.
StorePathPrefix returns the store meta info key path prefix.
StoreRegionWeightPath returns the store region weight key path with the given store ID.
TimestampPath returns the timestamp path for the given timestamp oracle path prefix.
TSOPath returns the path to store TSO addresses.
TSOSvcRootPath returns the root path of tso service.

# Constants

ClusterIDPath is the path to store cluster id.
ClusterPath is the path to save the cluster meta information.
Config is the path to save the PD config.
ControllerConfigPath is the path to save the controller config.
CustomSchedulerConfigPath is the path to save the scheduler config.
GCWorkerServiceSafePointID is the service id of GC worker.
RegionLabelPath is the path to save the region label.
resource group storage endpoint has prefix `resource_group` ResourceGroupSettingsPath is the path to save the resource group settings.
ResourceGroupStatesPath is the path to save the resource group states.
RuleGroupPath is the path to save the placement rule groups.
RulesPath is the path to save the placement rules.
ServiceMiddlewarePath is the path to save the service middleware config.
TimestampKey is the key of timestamp oracle used for the suffix.

# Structs

MsParam is the parameter of micro service.