ListHosts returns all hosts from the registry. Returns nil if single-host.
()
| 141 | |
| 142 | // ListHosts returns all hosts from the registry. Returns nil if single-host. |
| 143 | func (c *PoolCache) ListHosts() []string { |
| 144 | if c == nil || c.registry == nil { |
| 145 | return nil |
| 146 | } |
| 147 | return c.registry.ListHosts() |
| 148 | } |
| 149 | |
| 150 | // Evict removes the host's pool from the cache and closes it. |
| 151 | func (c *PoolCache) Evict(host string) { |