blob: fadbfde002720ed99eca418b89d5cc0d67c3719e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package praefect
// HealthChecker manages information of healthy nodes.
type HealthChecker interface {
// HealthyNodes gets a list of healthy storages by their virtual storage.
HealthyNodes() map[string][]string
}
// StaticHealthChecker returns the nodes as always healthy.
type StaticHealthChecker map[string][]string
func (healthyNodes StaticHealthChecker) HealthyNodes() map[string][]string {
return healthyNodes
}
|