Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + type AuditLogger interface + Count func(ctx context.Context, filter QueryFilter) (int, error) + Log func(ctx context.Context, event Event) error + Query func(ctx context.Context, filter QueryFilter) ([]Event, error) + type Event struct + Action string + Duration time.Duration + ID string + Metadata map[string]string + Outcome string + RequestID string + Resource string + TenantID string + Timestamp time.Time + UserID string + type PGAuditLogger struct + func NewPGAuditLogger() *PGAuditLogger + func (l *PGAuditLogger) Count(ctx context.Context, filter QueryFilter) (int, error) + func (l *PGAuditLogger) Log(ctx context.Context, event Event) error + func (l *PGAuditLogger) Query(ctx context.Context, filter QueryFilter) ([]Event, error) + type QueryFilter struct + Action string + From time.Time + Limit int + RequestID string + TenantID string + To time.Time + UserID string