Skip to main content

Crate elastik

Crate elastik 

Source
Expand description

elastik — Rust client for elastik servers.

cargo add elastik and use it to talk to any running elastik server. Same atom set as the Python SDK and @elastikjs/client: put / get / head / delete / list / shaped. Synchronous (reqwest::blocking) by default so the simple cases stay simple.

use elastik::Elastik;

let e = Elastik::new("http://localhost:3105").token("t");
e.put("/home/note", b"hello", &[("actor", "me")])?;
let body = e.get_raw("/home/note")?;
assert_eq!(body, b"hello");

What is elastik: see https://pypi.org/project/elastik/. pip install elastik gets you the server. This crate is the client.

Structs§

Elastik
Pythonic, pre-bound elastik client.
Envelope
PutResponse

Enums§

Error

Type Aliases§

Result