Skip to main content Module purge_history Copy item path Source use std::pin::pin ; ๐ use axum::extract::State; ๐ use futures::StreamExt; ๐ use ruma::EventId; ๐ use ruma::MilliSecondsSinceUnixEpoch; ๐ use ruma::OwnedRoomId; ๐ use ruma::RoomId; ๐ use ruma::api::Direction; ๐ use synapse_admin_api::purge_history::purge::by_event::Request as PurgeByEventRequest; ๐ use synapse_admin_api::purge_history::purge::by_event::Response as PurgeByEventResponse; ๐ use synapse_admin_api::purge_history::purge::v1::Request as PurgeRequest; ๐ use synapse_admin_api::purge_history::purge::v1::Response as PurgeResponse; ๐ use synapse_admin_api::purge_history::status::v1::PurgeStatus; ๐ use synapse_admin_api::purge_history::status::v1::Request as StatusRequest; ๐ use synapse_admin_api::purge_history::status::v1::Response as StatusResponse; ๐ use tuwunel_core::Err ; ๐ use tuwunel_core::Result ; ๐ use tuwunel_core::err ; ๐ use tuwunel_matrix::pdu::PduCount ; ๐ use tuwunel_service::tasks::Status ; ๐ use crate::Ruma ; ๐ use crate::require_admin ; ๐ admin_purge_history_by_event_route ๐ POST /_synapse/admin/v1/purge_history/{room_id}/{event_id}admin_purge_history_route ๐ POST /_synapse/admin/v1/purge_history/{room_id}admin_purge_history_status_route ๐ GET /_synapse/admin/v1/purge_history_status/{purge_id}purge_status ๐ resolve_boundary ๐ Resolves the exclusive purge boundary from the boundary event or timestamp,
erroring when neither is given, the event is unknown or belongs to another
room, or no event precedes the timestamp. schedule_purge ๐ Spawns the purge on the tasks service, returning its id. Takes services by
value (it is Copy) so the detached task owns a 'static handle.