1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! High-level async client for the `acuity-index` WebSocket API.
//!
//! ```no_run
//! use acuity_index_api_rs::{CustomKey, CustomValue, IndexerClient, Key};
//!
//! #[tokio::main(flavor = "current_thread")]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = IndexerClient::connect("ws://127.0.0.1:8172").await?;
//!
//! let spans = client.status().await?;
//! println!("indexed spans: {spans:?}");
//!
//! let events = client
//! .get_events(
//! Key::Custom(CustomKey {
//! name: "ref_index".into(),
//! value: CustomValue::U32(42),
//! }),
//! Some(100),
//! None,
//! )
//! .await?;
//! println!("events: {}", events.events.len());
//! Ok(())
//! }
//! ```
pub use ;
pub use ;
pub use ;