Skip to main content

Crate cortexdb_client

Crate cortexdb_client 

Source
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§

AuthInterceptor
Adds authorization: Bearer <token> to every request when a token is set.
CortexClient
One connection to a CortexDB sidecar, exposing all service clients.
CortexClientBuilder
Builder for CortexClient.