Skip to main content

tuwunel_admin/query/room_alias/
mod.rs

1mod all_local_aliases;
2mod local_aliases_for_room;
3mod resolve_alias;
4mod resolve_local_alias;
5
6use clap::Subcommand;
7use ruma::{OwnedRoomAliasId, OwnedRoomId};
8use tuwunel_core::Result;
9
10use crate::admin_command_dispatch;
11
12#[admin_command_dispatch]
13#[derive(Debug, Subcommand)]
14/// All the getters and iterators from src/service/rooms/alias/
15pub(crate) enum RoomAliasCommand {
16	/// - Resolve any local or remote alias.
17	ResolveAlias {
18		/// Full room alias
19		alias: OwnedRoomAliasId,
20	},
21
22	/// - Resolve an alias on this server.
23	ResolveLocalAlias {
24		/// Full room alias
25		alias: OwnedRoomAliasId,
26	},
27
28	/// - Iterator of all our local room aliases for the room ID
29	LocalAliasesForRoom {
30		/// Full room ID
31		room_id: OwnedRoomId,
32	},
33
34	/// - Iterator of all our local aliases in our database with their room IDs
35	AllLocalAliases,
36}