HostForAPIHost resolves via an "api_host: " key holding the host that configured it, mirroring the reverse lookup the real config performs.
(apiHost string)
| 693 | // HostForAPIHost resolves via an "api_host:<apiHost>" key holding the host that |
| 694 | // configured it, mirroring the reverse lookup the real config performs. |
| 695 | func (c tinyConfig) HostForAPIHost(apiHost string) (string, bool) { |
| 696 | host, ok := c[fmt.Sprintf("%s:%s", "api_host", apiHost)] |
| 697 | return host, ok |
| 698 | } |
| 699 | |
| 700 | // legacyConfig implements the primitive config interface (string return values) that external consumers of this |
| 701 | // package rely on. It exercises the backward-compatible seam that predates refresh support, so the regression tests |
nothing calls this directly
no outgoing calls
no test coverage detected