MITMHostOwners returns the host→model-name map, useful for the admin status endpoint. The lookup is recomputed on each call to stay current with model-config edits without needing a MITMRestart.
()
| 398 | // stay current with model-config edits without needing a |
| 399 | // MITMRestart. |
| 400 | func (a *Application) MITMHostOwners() map[string]string { |
| 401 | if a.backendLoader == nil { |
| 402 | return nil |
| 403 | } |
| 404 | return a.backendLoader.MITMHostOwners().Owners |
| 405 | } |
| 406 | |
| 407 | // RouterDecisions returns the routing decision store. nil when stats |
| 408 | // are disabled (--disable-stats); the RouteModel middleware skips the |
no outgoing calls
no test coverage detected