List lists created instance in the factory.
()
| 77 | |
| 78 | // List lists created instance in the factory. |
| 79 | func (f *Factory) List() map[string]Pair { |
| 80 | out := make(map[string]Pair) |
| 81 | f.cache.Range(func(key, value interface{}) bool { |
| 82 | out[key.(string)] = value.(Pair) |
| 83 | return true |
| 84 | }) |
| 85 | return out |
| 86 | } |
| 87 | |
| 88 | // Close closes every connection created by the factory. Connections are closed |
| 89 | // concurrently. |
no outgoing calls