Trait cratedb::dbcluster::Loadbalancing
[−]
[src]
pub trait Loadbalancing { fn get_endpoint(&self, endpoint_type: EndpointType) -> Option<String>; }
Trait to expose load balancing features of the driver to other components. Should return a URL for the backend to use.
Required Methods
fn get_endpoint(&self, endpoint_type: EndpointType) -> Option<String>
Returns an endpoint for the provided URL type (BLOB or SQL).