17 releases

1.1.0 Oct 21, 2024
0.4.3 Oct 21, 2024
0.4.2-rc.1 Jul 25, 2024
0.4.0 Mar 19, 2024
0.2.0 Jul 24, 2023

#458 in Network programming

Download history 4/week @ 2024-08-14 28/week @ 2024-09-11 15/week @ 2024-09-18 18/week @ 2024-09-25 48/week @ 2024-10-02 6/week @ 2024-10-09 339/week @ 2024-10-16 98/week @ 2024-10-23 3/week @ 2024-10-30

1,190 downloads per month
Used in sozu-prometheus-connector

Custom license and LGPL-3.0

23KB
439 lines

Sōzu client

This repository exposes a client to interact with Sōzu. It allows to send one request at a time or batching them using the LoadState commands.

Status

This client is under development, you can use it, but it may have bugs.

Installation

To install this dependency, just add the following line to your Cargo.toml manifest.

sozu-client = "^0.2.0"

Usage

You can use the client like this:

let opts = ConnectionProperties::try_from(&PathBuf::from("path/to/sozu-configuration.toml")).unwrap();
let client = Client::try_new(opts).await.unwrap();

client.send(RequestType::LoadState(...)).await.unwrap();

Contributing

See CONTRIBUTING.md and CODE_OF_CONDUCT.md files.

License

See the LICENSE file.

Getting in touch


lib.rs:

Sōzu client

This library provides a client to interact with Sōzu. The client is able to do one-time request or send batches.

Dependencies

~12–24MB
~343K SLoC