Skip to main content

tuwunel_admin/query/pusher/
mod.rs

1mod get_pushers;
2mod remove_pusher;
3
4use clap::Subcommand;
5use ruma::OwnedUserId;
6use tuwunel_core::Result;
7
8use crate::admin_command_dispatch;
9
10#[admin_command_dispatch]
11#[derive(Debug, Subcommand)]
12pub(crate) enum PusherCommand {
13	/// - Returns all the pushers for the user.
14	GetPushers {
15		/// Full user ID
16		user_id: OwnedUserId,
17	},
18
19	/// - Manually delete a pusher for a user.
20	RemovePusher {
21		/// Full user ID
22		user_id: OwnedUserId,
23
24		/// Pushkey
25		pushkey: String,
26	},
27}