kafka-client-engine 0.0.1

Execution and driver-integration layer for the native Kafka client
Documentation
1
2
3
4
5
6
7
8
//! Validated driver-owned routing for one classic consumer-group spelling.

use kafka_driver::{CoordinatorKey, CoordinatorKeyError, CoordinatorKind, Route};

pub(super) fn group_coordinator_route(group: &str) -> Result<Route, CoordinatorKeyError> {
    let key = CoordinatorKey::new(CoordinatorKind::Group, group)?;
    Ok(Route::Coordinator { key })
}