haproxy-stats-socket 0.1.0

HAProxy stats socket
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::error;

use haproxy_stats_socket::client::Client;

use super::helpers::{get_tcp_addr, init_logger};

#[tokio::test]
async fn show_info() -> Result<(), Box<dyn error::Error>> {
    init_logger();

    //
    let client = Client::with_tcp(get_tcp_addr()?);

    let info = client.show_info().await?;
    println!("info {:?}", info);

    Ok(())
}