Expand description
Typed gRPC client for the CortexDB sidecar (cortexdb-grpc).
use cortexdb_client::CortexClient;
let client = CortexClient::builder("http://127.0.0.1:47821")
.token("s3cret")
.connect()
.await?;
let info = client.admin().info(cortexdb_client::proto::InfoRequest {}).await?;
println!("server version: {}", info.into_inner().version);Modules§
- proto
- Generated protobuf/tonic types for
cortexdb.v1.
Structs§
- Auth
Interceptor - Adds
authorization: Bearer <token>to every request when a token is set. - Cortex
Client - One connection to a CortexDB sidecar, exposing all service clients.
- Cortex
Client Builder - Builder for
CortexClient.