Skip to main contentModule token_expiry
Source use std::pin::pin; ๐ use std::sync::Arc; ๐ use futures::TryFutureExt; ๐ use futures::TryStreamExt; ๐ use ruma::DeviceId; ๐ use ruma::UserId; ๐ use tuwunel_core::Result; ๐ use tuwunel_core::debug_warn; ๐ use tuwunel_core::err; ๐ use tuwunel_core::info; ๐ use tuwunel_core::info; ๐ use tuwunel_core::warn; ๐ use tuwunel_database::Map; ๐ use crate::Services; ๐ use crate::integrity::token_expiry::Row; ๐ use crate::integrity::token_expiry::Token; ๐ use crate::integrity::token_expiry::origin; ๐ use crate::integrity::token_expiry::rows; ๐ use crate::integrity::token_expiry::token; ๐
- Tally ๐
- Counts of what one walk of the origin column did.
- Mode ๐
- What a walk does to the token an origin row names.
- Restore ๐
- Whether the restore of adopted expiries has work on this boot.
- ADOPT_MARKER ๐
- Stamped once every origin expiry has been adopted.
- RESTORE_MARKER ๐
- Stamped once every expiry adopted without a provider has been restored.
- adopt ๐
- Adopts the expiries an opened origin column records, returning whether the
pass is finished with it.
- apply_one ๐
- Applies the mode to the token one origin row names, reporting whether the
row was acted on.
- migrate ๐
- Adopts the access-token expiry a foreign database keeps in a column of its
own, returning whether the pass is finished with that column.
- probe ๐
- Whether the origin column holds a row the adoption could still carry.
- restore ๐
- Restores the origin lifetime of each session an earlier release adopted with
no provider to refresh it against.
- restore_due ๐
- Decides whether the restore walks on this boot, opening the origin column if
so.
- skip ๐
- walk ๐
- Walks the origin column once, applying the mode to every row.