Expand description
§ironflow-runtime
The daemon/server layer for ironflow, providing webhook HTTP endpoints
and trigger sources on top of ironflow_core operations.
This crate exposes a runtime::Runtime builder that lets you declaratively register
webhook routes (with pluggable authentication), then start a full
Axum HTTP server via runtime::Runtime::serve with
graceful shutdown support.
§Quick start
use ironflow_runtime::prelude::*;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
Runtime::new()
.webhook("/hooks/github", WebhookAuth::github("my-secret"), |payload| async move {
println!("received: {payload}");
})
.serve("0.0.0.0:3000")
.await?;
Ok(())
}§Modules
runtime- Theruntime::Runtimebuilder and HTTP server.webhook- Webhook authentication strategies (webhook::WebhookAuth).trigger- Pluggable trigger sources (EventTrigger,NatsTriggerbehindtrigger-natsfeature).