Skip to main content

Module mediaid_user

Module mediaid_user 

Source
Expand description

The rows of mediaid_user.

A key is a media id and the user who uploaded it. One check covers the key layout that came before, the other rows that do not name this server’s media.

Re-exportsΒ§

use std::fmt; πŸ”’
use std::str::from_utf8; πŸ”’
use futures::Stream; πŸ”’
use ruma::MxcUri; πŸ”’
use ruma::OwnedMxcUri; πŸ”’
use ruma::OwnedUserId; πŸ”’
use ruma::UserId; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::itertools::Itertools; πŸ”’
use tuwunel_core::utils::BoolExt; πŸ”’
use tuwunel_core::utils::TryReadyExt; πŸ”’
use tuwunel_database::KeyBuf; πŸ”’
use tuwunel_database::SEP; πŸ”’
use tuwunel_database::keyval::Buffer; πŸ”’
use super::Check; πŸ”’
use super::Report; πŸ”’
use super::ScanExt; πŸ”’
use super::tally; πŸ”’
use crate::Services; πŸ”’

EnumsΒ§

Legacy
A mediaid_user key from before keys carried the uploader.
Remote
A mediaid_user row with no business being in the column.

StaticsΒ§

LEGACY πŸ”’
REMOTE πŸ”’

FunctionsΒ§

classify_legacy πŸ”’
Classifies one row as legacy does.
legacy
Streams each mediaid_user key with no separator.
legacy_finding πŸ”’
media_id πŸ”’
Reads the media id of a key holding exactly a media id and a user id.
remote
Streams each separated mediaid_user key that fails to name this server’s media.
remote_finding πŸ”’

Type AliasesΒ§

Value πŸ”’