tuwunel_admin/query/globals/mod.rs
1mod current_count;
2mod database_version;
3mod signing_keys_for;
4
5use clap::Subcommand;
6use ruma::OwnedServerName;
7use tuwunel_core::Result;
8
9use crate::admin_command_dispatch;
10
11#[admin_command_dispatch(handler_prefix = "globals")]
12#[derive(Debug, Subcommand)]
13/// All the getters and iterators from src/service/globals/
14pub(crate) enum GlobalsCommand {
15 DatabaseVersion,
16
17 CurrentCount,
18
19 /// - This returns an empty `Ok(BTreeMap<..>)` when there are no keys found
20 /// for the server.
21 SigningKeysFor {
22 origin: OwnedServerName,
23 },
24}