Expand description
Persistent registration token metadata.
Database tokens retain a stored successful-use count and optional expiration limits. Validation removes records when the stored count reaches its threshold or the deadline passes.
Re-exportsยง
use std::sync::Arc;๐use std::time::SystemTime;๐use futures::Stream;๐use serde::Deserialize;๐use serde::Deserialize;๐use serde::Serialize;๐use serde::Serialize;๐use tuwunel_core::Err;๐use tuwunel_core::Result;๐use tuwunel_core::err;๐use tuwunel_core::utils;๐use tuwunel_core::utils::stream::ReadyExt;๐use tuwunel_core::utils::stream::TryIgnore;๐use tuwunel_database::Database;๐use tuwunel_database::Deserialized;๐use tuwunel_database::Json;๐use tuwunel_database::Map;๐
Structsยง
- Data ๐
- Provides database operations for registration tokens.
- Database
Token Info - Persistent usage and expiration metadata for a registration token.
- Token
Expires - Optional limits governing a database-backed registration token.