Skip to main content

Module appservice

Module appservice 

Source

Re-exportsΒ§

use std::sync::Mutex; πŸ”’
use std::collections::BTreeMap; πŸ”’
use std::collections::btree_map::Values; πŸ”’
use std::ffi::OsStr; πŸ”’
use std::fs; πŸ”’
use std::fs::read_dir; πŸ”’
use std::iter::Filter; πŸ”’
use std::sync::Arc; πŸ”’
use async_trait::async_trait; πŸ”’
use futures::FutureExt; πŸ”’
use futures::Stream; πŸ”’
use futures::TryStreamExt; πŸ”’
use reqwest::Client; πŸ”’
use ruma::RoomAliasId; πŸ”’
use ruma::RoomId; πŸ”’
use ruma::UserId; πŸ”’
use ruma::api::appservice::Registration; πŸ”’
use serde_yaml::from_slice as from_yaml; πŸ”’
use serde_yaml::to_string as to_yaml; πŸ”’
use tokio::sync::RwLock; πŸ”’
use tokio::sync::RwLockReadGuard; πŸ”’
use tokio::sync::SetOnce; πŸ”’
use tuwunel_core::smallstr::SmallString; πŸ”’
use tuwunel_core::Err; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::defer; πŸ”’
use tuwunel_core::err; πŸ”’
use tuwunel_core::implement; πŸ”’
use tuwunel_core::utils::BoolExt; πŸ”’
use tuwunel_core::utils::stream::IterStream; πŸ”’
use tuwunel_core::warn; πŸ”’
use tuwunel_database::Map; πŸ”’
pub use self::namespace_regex::NamespaceRegex;
pub use self::registration_info::IS_JOINED_SCOPE;
pub use self::registration_info::PROXY_PREFIXES;
pub use self::registration_info::RegistrationInfo;
pub use self::registration_info::proxy_claim;
use crate::client::make_appservice_unix; πŸ”’

ModulesΒ§

append πŸ”’
namespace_regex πŸ”’
ping πŸ”’
proxy
MSC4512: the paths an appservice claims and the requests forwarded to it.
registration_info πŸ”’
request πŸ”’
thirdparty πŸ”’

StructsΒ§

Data πŸ”’
Service

ConstantsΒ§

KNOWN_SCOPES πŸ”’

FunctionsΒ§

claim_holder πŸ”’
MSC4512: the id of another registration holding the same proxy prefix.
destination πŸ”’
The registration’s URL, absent when it asks for no traffic.
receivers
The registrations a sender may queue traffic for.
socket_path πŸ”’

Type AliasesΒ§

Receivers
The registrations receivers yields.
Registrations πŸ”’
SocketPath πŸ”’