Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RegionHeap ¶
type RegionHeap struct {
// contains filtered or unexported fields
}
RegionHeap implements heap.Interface, used for selecting top n regions.
func (*RegionHeap) Len ¶
func (h *RegionHeap) Len() int
func (*RegionHeap) Less ¶
func (h *RegionHeap) Less(i, j int) bool
func (*RegionHeap) Min ¶
func (h *RegionHeap) Min() *core.RegionInfo
Min returns the minimum region from the heap.
func (*RegionHeap) Pop ¶
func (h *RegionHeap) Pop() interface{}
Pop removes the minimum element (according to Less) from the heap and returns it.
func (*RegionHeap) Push ¶
func (h *RegionHeap) Push(x interface{})
Push pushes an element x onto the heap.
func (*RegionHeap) Swap ¶
func (h *RegionHeap) Swap(i, j int)
type Trend ¶
type Trend struct {
Stores []trendStore `json:"stores"`
History *trendHistory `json:"history"`
}
Trend describes the cluster's schedule trend.
Source Files
¶
- admin.go
- classifier.go
- cluster.go
- config.go
- health.go
- hot_status.go
- label.go
- log.go
- member.go
- operator.go
- redirector.go
- region.go
- router.go
- scheduler.go
- server.go
- stats.go
- status.go
- store.go
- trend.go
- util.go
- version.go
Click to show internal directories.
Click to hide internal directories.