robotech 1.6.6

Backend service implementation for the RoboTech platform, providing RESTful APIs and business logic for web applications.
1
2
3
4
5
6
7
8
9
use crate::tsdb::influxdb2::Influxdb2Config;
use influxdb2::Client;

pub fn build_influxdb2_client(config: Influxdb2Config) -> Client {
    let Influxdb2Config {
        url, org, token, ..
    } = config;
    Client::new(url, org, token)
}