feat: Add audit system with sink based dispatcher (#211)

* chore: Dependency update

* feat: Add audit system with eventlog as a sink

* fix: Linter fixes

* fix: Code review fixes
This commit is contained in:
Abhisek Datta
2026-04-10 19:07:15 +05:30
committed by GitHub
parent e72ff6aeaf
commit 0355a5d4fd
19 changed files with 872 additions and 284 deletions
+10
View File
@@ -0,0 +1,10 @@
package audit
import "context"
// Sink processes audit events. Implementations decide which event types they
// care about. Handle must not block the caller for I/O-heavy operations.
type Sink interface {
Handle(ctx context.Context, event AuditEvent) error
Close() error
}