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

Method store

core/cli/workerregistry/credentials.go:83–90  ·  view source on GitHub ↗
(res *RegisterResponse)

Source from the content-addressed store, hash-verified

81}
82
83func (m *NATSCredentialManager) store(res *RegisterResponse) {
84 m.mu.Lock()
85 defer m.mu.Unlock()
86 m.nodeID = res.ID
87 if res.NatsJWT != "" && res.NatsUserSeed != "" {
88 m.jwt, m.seed = res.NatsJWT, res.NatsUserSeed
89 }
90}
91
92// Current returns the latest NATS credentials (both empty until acquired).
93func (m *NATSCredentialManager) Current() (jwt, seed string) {

Callers 15

AcquireMethod · 0.95
RefreshLoopMethod · 0.95
tts.jsFile · 0.80
saveChatsToStorageFunction · 0.80
loadChatsFromStorageFunction · 0.80
updateRequestTrackingFunction · 0.80
createNewChatFunction · 0.80
switchChatFunction · 0.80
deleteChatFunction · 0.80
bulkDeleteChatsFunction · 0.80
updateUIForActiveChatFunction · 0.80
updateChatNameFunction · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected