feat(kafka): add consumer group backlog view

This commit is contained in:
Guoyu Su authored and GitHub committed 2026-08-20 08:47:05 +08:00
1 parent dc8b083c63
commit f88167c3d0
28 files changed
+1274 -2

No files matched your search

+8
View File
@@ -276,6 +276,14 @@ pub async fn mq_enrich_subscriptions(
dbx_core::mq::service::mq_enrich_subscriptions_core(&state, &connection_id, topic).await
}
#[tauri::command]
pub async fn mq_get_kafka_consumer_group_snapshot(
state: State<'_, Arc<AppState>>,
connection_id: String,
) -> Result<dbx_core::mq::KafkaConsumerGroupSnapshot, String> {
dbx_core::mq::service::mq_get_kafka_consumer_group_snapshot_core(&state, &connection_id).await
}
#[tauri::command]
pub async fn mq_create_subscription(
state: State<'_, Arc<AppState>>,
+2
View File
@@ -2107,6 +2107,8 @@ pub fn run() {
#[cfg(feature = "mq-admin")]
commands::mq_cmd::mq_enrich_subscriptions,
#[cfg(feature = "mq-admin")]
commands::mq_cmd::mq_get_kafka_consumer_group_snapshot,
#[cfg(feature = "mq-admin")]
commands::mq_cmd::mq_create_subscription,
#[cfg(feature = "mq-admin")]
commands::mq_cmd::mq_delete_subscription,