MCPcopy Create free account
hub / github.com/codnect/procyon / List

Function List

component/component.go:130–134  ·  view source on GitHub ↗

List returns all registered components as a slice.

()

Source from the content-addressed store, hash-verified

128
129// List returns all registered components as a slice.
130func List() []*Component {
131 muComponents.RLock()
132 defer muComponents.RUnlock()
133 return slices.Collect(maps.Values(components))
134}
135
136// ListOf returns all registered components whose type is assignable to the type T.
137func ListOf[T any]() []*Component {

Callers 2

TestListFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestListFunction · 0.68