input

package
v3.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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.

func (RegionsInfo) GetValues

func (rs RegionsInfo) GetValues(tag regionpkg.StatTag) []uint64

GetValues returns the specified statistics of all regions, sorted by region start key.

func (RegionsInfo) Len

func (rs RegionsInfo) Len() int

Len returns the number of regions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL