tonic-lb

Crates.iotonic-lb
lib.rstonic-lb
version0.0.2
sourcesrc
created_at2024-04-23 08:55:39.772202
updated_at2024-04-24 02:55:33.344511
descriptionA Grpc name resolver for tonic
homepagehttps://github.com/yoogoc/tonic-lb
repositoryhttps://github.com/yoogoc/tonic-lb
max_upload_size
id1217304
size11,304
yoogo (yoogoc)

documentation

README

tonic-lb

A Grpc name resolver for tonic

usage

let uri = "kubernetes://service-name:8080/".into();
let channel = tonic_lb::kube::default_channel(uri).await?;
let client = YourServiceClient::new(channel);

an url can be one of the following

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
Commit count: 8

cargo fmt