vertx-http-gateway-rust-connector
What is it
Rust implementation for vertx-http-gateway-connector
How to use
use ;
async
Rust implementation for vertx-http-gateway-connector
use vertx_http_gateway_rust_connector::{ConnectorOptions, VertxHttpGatewayConnector};
#[tokio::main]
async fn main() {
env_logger::init();
let connector = VertxHttpGatewayConnector::new(ConnectorOptions {
register_host: "localhost".to_string(),
register_port: 9090,
service_host: None,
service_name: "test-service".to_string(),
service_port: 12345,
register_path: "/register".to_string(),
instance: None
});
connector.start().await;
}