mirror of
https://github.com/bolucat/Archive.git
synced 2025-10-13 11:54:02 +08:00
18 lines
425 B
Go
18 lines
425 B
Go
package selector
|
|
|
|
type Selector interface {
|
|
// Get returns a upstream
|
|
Get() *Upstream
|
|
|
|
// StartEvaluate start upstream evaluation loop
|
|
StartEvaluate()
|
|
|
|
// ReportUpstreamStatus report upstream status
|
|
ReportUpstreamStatus(upstream *Upstream, upstreamStatus upstreamStatus)
|
|
}
|
|
|
|
type DebugReporter interface {
|
|
// ReportWeights starts a goroutine to report all upstream weights, recommend interval is 15s
|
|
ReportWeights()
|
|
}
|