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§
- Tonic
Connector - Ready-to-use connector for Tonic.
Enums§
- Error
- Wrapper for Tonic’s errors (
Statusand transportError)
Traits§
Type Aliases§
- Tonic
Round Robin - Shorthand type for a Tonic round-robin