Documentation
¶
Overview ¶
Package audit keeps the audit log bounded: a daily prune deletes entries older than the retention, after handing them to the configured export so they still exist somewhere.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Prune ¶
func Prune(ctx context.Context, d *db.DB, retention time.Duration, export Export, exportName string) (int, error)
Prune deletes entries older than retention (export first) and records the prune in the audit log itself. It returns how many entries it deleted.
Types ¶
Click to show internal directories.
Click to hide internal directories.