Skip to main content

Module retention

Module retention 

Source
Expand description

Retains original event JSON when accepted timeline events are redacted.

Originals are indexed by redaction time for periodic expiry. Saving and scheduled cleanup are controlled independently so operators can retain originals indefinitely when expiry is disabled.

Re-exportsยง

use std::sync::Arc; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use async_trait::async_trait; ๐Ÿ”’
use futures::Stream; ๐Ÿ”’
use futures::TryStreamExt; ๐Ÿ”’
use ruma::CanonicalJsonObject; ๐Ÿ”’
use ruma::EventId; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::debug_info; ๐Ÿ”’
use tuwunel_core::expected; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::utils::BoolExt as _; ๐Ÿ”’
use tuwunel_core::utils::TryReadyExt; ๐Ÿ”’
use tuwunel_core::utils::time::now; ๐Ÿ”’
use tuwunel_database::Deserialized; ๐Ÿ”’
use tuwunel_database::Json; ๐Ÿ”’
use tuwunel_database::Map; ๐Ÿ”’
use tuwunel_matrix::pdu::PduEvent; ๐Ÿ”’
use crate::rooms::timeline::RoomMutexGuard; ๐Ÿ”’

Structsยง

Service
Stores and expires the unredacted originals of redacted events.