# Functions
DiffRegionKeyInfo return the difference of key info between two RegionInfo.
DiffRegionPeersInfo return the difference of peers info between two RegionInfo.
MergeRegions merge a set of metapb.Region by regionKey.
NewKV creates KV instance with KVBase.
NewMemoryKV returns an in-memory kvBase for testing.
NewRegion create a metapb.Region.
NewRegionInfo creates RegionInfo with region's meta and leader peer.
NewRegionsInfo creates RegionsInfo with tree, regions, leaders and followers.
NewStoreInfo creates StoreInfo with meta data.
NewStoresInfo create a StoresInfo with map of storeID to StoreInfo.
ParseResourceKind convert string to ResourceKind.
SplitRegions split a set of metapb.Region by the middle of regionKey.
# Constants
AdminKind indicates that specify by admin.
LeaderKind indicates the leader kind resource.
OtherKind indicates the other kind resource.
PriorityKind indicates the priority kind resource.
RegionKind indicates the region kind resource.
UnKnownKind indicates the unknown kind resource.
# Variables
ErrStoreIsBlocked is for log of store is blocked.
ErrStoreNotFound is for log of store no found.
# Structs
HotRegionsStat records all hot regions statistics.
KV wraps all kv operations, keep it stateless.
RegionInfo records detail region info.
RegionsInfo for export.
RegionStat records each hot region's statistics.
StoreHotRegionInfos : used to get human readable description for hot regions.
StoreInfo contains information about a store.
StoresInfo is a map of storeID to StoreInfo.
# Interfaces
IDAllocator is the allocator to generate unique ID.
KVBase is an abstract interface for load/save pd cluster data.
# Type aliases
RegionsStat is a list of a group region state type.
ResourceKind distinguishes different kinds of resources.
StoreHotRegionsStat used to record the hot region statistics group by store.