Function create_endpoint

Source
pub fn create_endpoint(uri: Uri) -> Endpoint
Expand description

Creates endpoint from uri If protocol is grpcs, then creates tonic::transport::ClientTlsConfig and applies to Endpoint

§Arguments

  • uri - An Uri of endpoint

§Examples

use ydb_unofficial::client;
let url = "grpcs://ydb.serverless.yandexcloud.net:2135";
let enpoint = client::create_endpoint(url.try_into().unwrap());