mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
* chore: Dependency update * feat: Add audit system with eventlog as a sink * fix: Linter fixes * fix: Code review fixes
11 lines
277 B
Go
11 lines
277 B
Go
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
|
|
}
|