Files
pmg/internal/audit/sink.go
T

11 lines
277 B
Go
Raw Normal View History

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
}