SelectSearchChainNames returns just the provider names in chain order. Exposed for display layers (e.g. /websearch status) that shouldn't touch the internal provider-entry struct.
()
| 264 | // Exposed for display layers (e.g. /websearch status) that shouldn't touch |
| 265 | // the internal provider-entry struct. |
| 266 | func SelectSearchChainNames() []SearchProvider { |
| 267 | chain := SelectSearchChain() |
| 268 | out := make([]SearchProvider, 0, len(chain)) |
| 269 | for _, p := range chain { |
| 270 | out = append(out, p.name) |
| 271 | } |
| 272 | return out |
| 273 | } |
| 274 | |
| 275 | // selectSearchChainFromEnv is the pure-logic core, unit-testable without |
| 276 | // touching process environment state. |
no test coverage detected