Function ydb_unofficial::client::create_endpoint
source · pub fn create_endpoint(uri: Uri) -> EndpointExpand description
Creates endpoint from uri
If protocol is grpcs, then creates tonic::transport::ClientTlsConfig and applies to Endpoint
Arguments
uri- AnUriof endpoint
Examples
use ydb_unofficial::client;
let url = "grpcs://ydb.serverless.yandexcloud.net:2135";
let enpoint = client::create_endpoint(url.try_into().unwrap());