Skip to main content

Module gateway

Module gateway 

Source
Expand description

Basilisk gateway registration and service-bus connection.

GatewayConnect registers this service’s path prefixes with the Basilisk gateway and holds the connected BasiliskClient. GatewayConnect::set_up is the usual entry point (called by GenericStartup during bootstrap); GatewayConnect::instance returns the process-wide connection once established.

let gateway = GatewayConnect::set_up(
    vec!["/api".to_string()],
    "http".to_string(),
    1,
    "token".to_string(),
).await?;

Structs§

GatewayConnect
Gateway connection handle. Wraps the connected Basilisk client, if any.