MCPcopy
hub / github.com/mudler/LocalAI / Keys

Method Keys

pkg/xsync/map.go:30–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func (m *SyncedMap[K, V]) Keys() []K {
31 m.mu.RLock()
32 defer m.mu.RUnlock()
33 keys := make([]K, 0, len(m.m))
34 for k := range m.m {
35 keys = append(keys, k)
36 }
37 return keys
38}
39
40func (m *SyncedMap[K, V]) Values() []V {
41 m.mu.RLock()

Callers 6

ListAgentsEndpointFunction · 0.80
applyEndMethod · 0.80
DeleteUUIDMethod · 0.80
GetStatusMethod · 0.80
stopAllBackendsMethod · 0.80
CPUCapabilitiesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected