mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-24 04:57:00 +01:00
26 lines
563 B
Rust
26 lines
563 B
Rust
//! An actor that shows the servers current status and statistics. (TODO).
|
|
|
|
use uuid::Uuid;
|
|
|
|
// TODO: this should *totally* be running the OTEL metrics collector
|
|
|
|
pub struct StatusRequestEvent {
|
|
pub eventid: Uuid,
|
|
}
|
|
|
|
pub struct StatusActor {}
|
|
|
|
impl StatusActor {
|
|
pub fn start() -> &'static Self {
|
|
let x = Box::new(StatusActor {});
|
|
|
|
let x_ptr = Box::into_raw(x);
|
|
unsafe { &(*x_ptr) }
|
|
}
|
|
|
|
pub async fn handle_request(&self, _event: StatusRequestEvent) -> bool {
|
|
trace!("status handler complete");
|
|
true
|
|
}
|
|
}
|