Expand description
Synapse admin API: registration-token endpoints.
Re-exportsยง
use std::time::Duration;๐use ruma::MilliSecondsSinceUnixEpoch;๐use ruma::UInt;๐use ruma::uint;๐use synapse_admin_api::registration_tokens::RegistrationToken;๐use tuwunel_core::Result;๐use tuwunel_core::utils::time::timepoint_from_epoch;๐use tuwunel_service::registration_tokens::DatabaseTokenInfo;๐use tuwunel_service::registration_tokens::TokenExpires;๐use tuwunel_service::registration_tokens::TokenInfo;๐pub(crate) use self::create::admin_create_token_route;๐pub(crate) use self::delete::admin_delete_token_route;๐pub(crate) use self::get::admin_get_token_route;๐pub(crate) use self::list::admin_list_tokens_route;๐pub(crate) use self::update::admin_update_token_route;๐
Modulesยง
Functionsยง
- database_
token_ ๐response - Map a token and its stored metadata into the admin API wire shape.
pendingis always zero: tuwunel consumes uses in a single step with no two-phase registration model. - token_
expires ๐ - token_
response ๐ - Map a validated token into the admin API wire shape. Config-file tokens carry no usage state, so they read as unlimited, never expiring, and unused.