MCPcopy Create free account
hub / github.com/mudler/LocalAI / NodeID

Method NodeID

core/cli/workerregistry/credentials.go:100–104  ·  view source on GitHub ↗

NodeID returns the node ID from the most recent registration.

()

Source from the content-addressed store, hash-verified

98
99// NodeID returns the node ID from the most recent registration.
100func (m *NATSCredentialManager) NodeID() string {
101 m.mu.RLock()
102 defer m.mu.RUnlock()
103 return m.nodeID
104}
105
106// Provider returns a callback compatible with messaging.WithUserJWTProvider,
107// supplying the current credentials on each (re)connect.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected