mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user