pub struct StoreClientBuilder { /* private fields */ }Expand description
Configures a StoreClient with explicit bases for health probes and store services.
Use StoreClient::builder() to construct. Call Self::url to point health, ingest, and
query at the same origin, or set each base separately. Finish with Self::build.
Implementations§
Source§impl StoreClientBuilder
impl StoreClientBuilder
Sourcepub fn url(self, url: &str) -> Self
pub fn url(self, url: &str) -> Self
Sets the same base URL for all services (health, ingest, query, compact, stream).
Sourcepub fn health_url(self, url: &str) -> Self
pub fn health_url(self, url: &str) -> Self
Base URL for plain HTTP GET /health and GET /ready (often the query worker).
Sourcepub fn ingest_url(self, url: &str) -> Self
pub fn ingest_url(self, url: &str) -> Self
Base URL for the ingest service (store.ingest.v1.Service).
Sourcepub fn query_url(self, url: &str) -> Self
pub fn query_url(self, url: &str) -> Self
Base URL for the query service (store.query.v1.Service).
Sourcepub fn compact_url(self, url: &str) -> Self
pub fn compact_url(self, url: &str) -> Self
Base URL for the compact service (store.compact.v1.Service).
Sourcepub fn stream_url(self, url: &str) -> Self
pub fn stream_url(self, url: &str) -> Self
Base URL for the stream service (store.stream.v1.Service). Defaults
to the ingest base when not set explicitly.
Sourcepub fn key_prefix(self, prefix: StoreKeyPrefix) -> Self
pub fn key_prefix(self, prefix: StoreKeyPrefix) -> Self
Client-side key namespace applied to all user-key operations.
Sourcepub fn retry_config(self, retry: RetryConfig) -> Self
pub fn retry_config(self, retry: RetryConfig) -> Self
Retry policy for idempotent read operations (get / range / reduce).
Sourcepub fn connect_request_compression(
self,
compression: ConnectRequestCompression,
) -> Self
pub fn connect_request_compression( self, compression: ConnectRequestCompression, ) -> Self
Codec for compressing outgoing RPC request bodies (default ConnectRequestCompression::Zstd).
Sourcepub fn build(self) -> Result<StoreClient, ClientBuildError>
pub fn build(self) -> Result<StoreClient, ClientBuildError>
Build the client, or return an error if any required URL was not set.