MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / push_auth

Method push_auth

nodedb/src/control/security/siem.rs:92–98  ·  view source on GitHub ↗

Push an auth event to the export buffer.

(&self, entry: AuditEntry)

Source from the content-addressed store, hash-verified

90
91 /// Push an auth event to the export buffer.
92 pub fn push_auth(&self, entry: AuditEntry) {
93 let mut buf = self.auth_buffer.write().unwrap_or_else(|p| p.into_inner());
94 if buf.len() >= self.config.buffer_size {
95 buf.pop_front();
96 }
97 buf.push_back(entry);
98 }
99
100 /// Drain audit events for CDC consumption (Splunk, Datadog, etc.).
101 pub fn drain_audit(&self) -> Vec<AuditEntry> {

Callers 1

buffer_and_drainFunction · 0.80

Calls 3

pop_frontMethod · 0.80
writeMethod · 0.45
lenMethod · 0.45

Tested by 1

buffer_and_drainFunction · 0.64