Thanks to visit codestin.com
Credit goes to lib.rs

18 releases

Uses new Rust 2024

1.1.0-rc.2 May 21, 2025
1.1.0-rc.1 Oct 21, 2024
0.4.4 May 21, 2025
0.4.3 Oct 21, 2024
0.2.0 Jul 24, 2023

#2 in #sozu

Codestin Search App

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

Custom license and LGPL-3.0

27KB
440 lines

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.


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

Dependencies

~20–31MB
~528K SLoC