mirror of
https://github.com/kanidm/kanidm.git
synced 2025-05-02 07:05:06 +02:00
* sally forth into the great otel unknown * make the build env identification slightly more durable * docs updates * wasm recompile
28 lines
592 B
Rust
28 lines
592 B
Rust
//! An actor that shows the servers current status and statistics. (TODO).
|
|
|
|
use uuid::Uuid;
|
|
|
|
use crate::prelude::*;
|
|
|
|
// 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 {
|
|
admin_info!("status handler complete");
|
|
true
|
|
}
|
|
}
|