blob: 3135bf9dd9bfd72cfe9e00fa3f094e4e462ec5f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package praefect
// HealthChecker manages information of locally 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
//nolint:revive // This is unintentionally missing documentation.
func (healthyNodes StaticHealthChecker) HealthyNodes() map[string][]string {
return healthyNodes
}
|