aa-gateway 0.0.1-beta.1

Control plane — policy enforcement engine and agent registry for Agent Assembly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Audit event sink abstraction used by the approval router.

use aa_core::AuditEventType;

/// Receives audit events emitted by the approval router.
pub trait AuditEventSink: Send + Sync {
    fn emit(&self, event_type: AuditEventType, payload: String);
}

/// Sink that discards all events; used in unit tests.
pub struct NoopAuditSink;

impl AuditEventSink for NoopAuditSink {
    fn emit(&self, _event_type: AuditEventType, _payload: String) {}
}