Configure rabbitmq via the sys-map server.

This commit is contained in:
2026-04-24 22:08:59 +01:00
parent 04a67dea5a
commit 3ff5dfaee4
6 changed files with 3144 additions and 6 deletions

12
examples/simple.rs Normal file
View File

@@ -0,0 +1,12 @@
use slingshot_microservice::Microservice;
fn process(request: u64) -> Vec<(u64, String)> {
vec![(request, "case_a".to_string())]
}
fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let microservice = Microservice::new("simple-microservice", "sys-map.slingshot.cv", process);
microservice.start()?;
Ok(())
}