MCPcopy Create free account
hub / github.com/DoNewsCode/core / List

Method List

di/factory.go:79–86  ·  view source on GitHub ↗

List lists created instance in the factory.

()

Source from the content-addressed store, hash-verified

77
78// List lists created instance in the factory.
79func (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.

Callers 5

TestFactoryFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestFactoryFunction · 0.76