Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCorePeriodicGetter ¶
func NewCorePeriodicGetter(srv *server.Server) regionpkg.RegionsInfoGenerator
NewCorePeriodicGetter returns the regionpkg.RegionsInfoGenerator interface implemented by PD. It gets RegionsInfo directly from memory.
Types ¶
type RegionsInfo ¶
type RegionsInfo []*core.RegionInfo
RegionsInfo implements the interface regionpkg.RegionsInfo for []*core.RegionInfo.
func (RegionsInfo) GetKeys ¶
func (rs RegionsInfo) GetKeys() []string
GetKeys returns the sorted endpoint keys of all regions.
Click to show internal directories.
Click to hide internal directories.