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 }