Crates.io | tonic-lb |
lib.rs | tonic-lb |
version | 0.0.2 |
source | src |
created_at | 2024-04-23 08:55:39.772202 |
updated_at | 2024-04-24 02:55:33.344511 |
description | A Grpc name resolver for tonic |
homepage | https://github.com/yoogoc/tonic-lb |
repository | https://github.com/yoogoc/tonic-lb |
max_upload_size | |
id | 1217304 |
size | 11,304 |
A Grpc name resolver for tonic
let uri = "kubernetes://service-name:8080/".into();
let channel = tonic_lb::kube::default_channel(uri).await?;
let client = YourServiceClient::new(channel);
kubernetes://service-name:8080/
kubernetes://service-name.namespace:8080/
kubernetes://service-name.namespace.svc.cluster_name
kubernetes://service-name.namespace.svc.cluster_name:8080
service-name:8080/
service-name.namespace:8080/
service-name.namespace.svc.cluster_name
service-name.namespace.svc.cluster_name:8080