Skip to main content

route

Function route 

Source
pub fn route(records: Vec<AuditRecord>, mode: RetentionMode) -> Routing
Expand description

Route records according to the retention policy.

This is a pure partition of the input (every record lands in exactly one bucket), so re-running it on archived ∪ inbox with the same mode is idempotent.