package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
NewDuration creates a Duration from time.Duration.
NewRegionInfo returns a new RegionInfo.
# Constants
Exists restricts the store should have the label.
Follower matches a follower.
In restricts the store label value should in the value list.
Leader matches a leader.
Learner matches a learner.
NotExists restricts the store should not have the label.
NotIn restricts the store label value should not in the value list.
Voter can either match a leader peer or follower peer.
# Structs
Duration is a wrapper of time.Duration for TOML and JSON.
LabelConstraint is used to filter store when trying to place peer of a region.
MetaPeer is api compatible with *metapb.Peer.
MetaStore contains meta information about a store.
PDPeerStats is api compatible with *pdpb.PeerStats.
Region is a mock of PD's core.RegionInfo.
RegionInfo records detail region info for api usage.
RegionsInfo contains some regions with the detailed region info.
RegionStats records a list of regions' statistics and distribution status.
RegionTree is a mock of PD's region tree.
ReplicationConfig is the replication configuration.
ReplicationStatus represents the replication mode status of the region.
Rule is the placement rule that can be checked against a region.
RuleGroup defines properties of a rule group.
StoreInfo contains information about a store.
StoresInfo records stores' info.
StoreStatus contains status about a store.
# Type aliases
ByteSize is a retype uint64 for TOML and JSON.
LabelConstraintOp defines how a LabelConstraint matches a store.
PeerRoleType is the expected peer type of the placement rule.
StringSlice is more friendly to json encode/decode.