20 releases (1 stable)

1.0.0 Feb 22, 2021
0.13.0 Jun 13, 2020
0.12.0 Jun 13, 2020
0.11.2 Aug 27, 2019
0.4.1 Sep 30, 2016

#213 in Database interfaces

Download history 3/week @ 2020-11-14 22/week @ 2020-11-21 5/week @ 2020-11-28 40/week @ 2020-12-05 4/week @ 2020-12-12 1/week @ 2020-12-19 21/week @ 2021-01-02 4/week @ 2021-01-09 22/week @ 2021-01-16 5/week @ 2021-01-23 1/week @ 2021-01-30 39/week @ 2021-02-06 43/week @ 2021-02-13 42/week @ 2021-02-20 28/week @ 2021-02-27

75 downloads per month

BSD-3-Clause

15KB
417 lines

This is a Rust client for Warp10 Geo/time series DB

Crates.io Build Status Build status Coverage Status LICENSE

Features

At the moment, we support writing to warp10.

Reading support should come at some point.

Example

extern crate time;
extern crate warp10;

fn warp10_post() -> std::result::Result<warp10::Response, warp10::Error> {
    let client = warp10::Client::new("http://localhost:8080/")?;
    let writer = client.get_writer("my_write_token".to_string());
    let res    = writer.post(vec![
        warp10::Data::new(
            time::now_utc().to_timespec(),
            Some(warp10::GeoValue::new(42.66, 62.18, Some(10))),
            "test data name 2".to_string(),
            vec![
                warp10::Label::new("label 1 name", "label 1 value"),
                warp10::Label::new("label 2 name", "label 2 value")
            ],
            warp10::Value::String("Test warp10 awesome value".to_string())
        )
    ])?;
    Ok(res)
}

fn main() {
    println!("{:?}", warp10_post());
}

Dependencies

~16MB
~343K SLoC