package audit import ( "context" "time" ) // Repository persists audit entries. type Repository interface { EnsureSchema(ctx context.Context) error Append(ctx context.Context, e Entry) error List(ctx context.Context, limit, offset int) ([]Entry, error) Count(ctx context.Context) (int64, error) PruneBefore(ctx context.Context, before time.Time) (int64, error) }