Expand description
Suspensions and locks a foreign database records.
Some databases keep suspension and lock state in columns of their own, with a
richer value. tuwunel keeps only the forensic when and by, with a rowβs
presence as the flag, and copies each active foreign entry over on every boot.
Re-exportsΒ§
use std::borrow::Cow;πuse std::fmt;πuse std::sync::Arc;πuse futures::FutureExt;πuse futures::Stream;πuse futures::StreamExt;πuse futures::future::BoxFuture;πuse ruma::MilliSecondsSinceUnixEpoch;πuse ruma::UserId;πuse serde::Deserialize;πuse serde::Deserialize;πuse tuwunel_core::Result;πuse tuwunel_core::arrayvec::ArrayVec;πuse tuwunel_core::result::NotFound;πuse tuwunel_core::utils::BoolExt;πuse tuwunel_core::utils::IterStream;πuse tuwunel_core::utils::TryReadyExt;πuse tuwunel_core::utils::stream::TryBroadbandExt;πuse tuwunel_database::Json;πuse tuwunel_database::KeyBuf;πuse tuwunel_database::Map;πuse tuwunel_database::serialize_val;πuse super::Check;πuse super::Report;πuse super::ScanExt;πuse super::Summary;πuse super::tally;πuse crate::Services;πuse crate::users::Moderation;π
StructsΒ§
- Foreign π
- A foreign entry, of which tuwunel keeps the time and the actor.
- Source
- A foreign moderation column the database holds, opened.
EnumsΒ§
- Entry π
- One foreign entry as the copy reads it.
- Finding
- A foreign entry the copy has yet to carry over, or cannot.
ConstantsΒ§
- COLUMNS π
- Each foreign column, with the column its entries copy into.
StaticsΒ§
- CHECK π
FunctionsΒ§
- entries π
- Streams every active entry of a foreign column, and every entry that does not decode.
- entry π
- Reads one foreign row as the copy and the check do.
- finding π
- Judges one foreign entry against its target row as
scandoes. - scan
- Streams each active entry of a foreign column that its target lacks or holds otherwise, and each entry that does not decode.
- sources
- Opens each foreign moderation column the database holds.
- to_
moderation π - Maps a foreign entry to tuwunelβs own record.
- walk π
Type AliasesΒ§
- Sources π