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

Method drain_auth

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

Drain auth events for CDC consumption.

(&self)

Source from the content-addressed store, hash-verified

105
106 /// Drain auth events for CDC consumption.
107 pub fn drain_auth(&self) -> Vec<AuditEntry> {
108 let mut buf = self.auth_buffer.write().unwrap_or_else(|p| p.into_inner());
109 buf.drain(..).collect()
110 }
111
112 /// Build a webhook payload with HMAC signature.
113 ///

Callers 1

flush_webhookMethod · 0.80

Calls 3

collectMethod · 0.80
writeMethod · 0.45
drainMethod · 0.45

Tested by

no test coverage detected