(cfg *config.Config)
| 149 | } |
| 150 | |
| 151 | func allHealthy(cfg *config.Config) map[string]bool { |
| 152 | out := make(map[string]bool, len(cfg.Backends)) |
| 153 | for _, b := range cfg.Backends { |
| 154 | out[b.Name] = true |
| 155 | } |
| 156 | return out |
| 157 | } |
| 158 | |
| 159 | func buildFallbackList(cfg *config.Config, primary string, health map[string]bool) []types.RouteDecision { |
| 160 | // Mirror server.buildFallback logic via router package helper would duplicate; inline minimal. |