NodeID returns the node ID from the most recent registration.
()
| 98 | |
| 99 | // NodeID returns the node ID from the most recent registration. |
| 100 | func (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. |