Expand description

Tourniquet integration with the celery library.

Example

let rr = RoundRobin::new(
    vec!["https://api01", "https://api02"],
    TonicConnector::default(),
);

rr.run(|channel| async move {
    grpc::greeting_client::GreetingClient::new(channel.as_ref().clone())
        .hello(grpc::Message::default())
        .await?;
    Ok(())
}).await?;

Structs

Ready-to-use connector for Tonic.

Enums

Wrapper for Tonic’s errors (Status and transport Error)

Traits

Type Definitions

Shorthand type for a Tonic round-robin