Crates.io | sozu-client |
lib.rs | sozu-client |
version | 1.1.0-rc.1 |
source | src |
created_at | 2023-07-24 11:39:35.629106 |
updated_at | 2024-10-21 12:39:00.950644 |
description | This library provides a client to interact with Sōzu. |
homepage | |
repository | https://github.com/CleverCloud/sozu-client |
max_upload_size | |
id | 924506 |
size | 48,657 |
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.
This client is under development, you can use it, but it may have bugs.
To install this dependency, just add the following line to your Cargo.toml manifest.
sozu-client = "^0.2.0"
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();
See CONTRIBUTING.md and CODE_OF_CONDUCT.md files.
See the LICENSE file.