Browse Source

add host, db accessors

master
Jonathan Strong 5 years ago
parent
commit
ac6076e45a
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/influx.rs

+ 4
- 0
src/influx.rs View File

@@ -241,6 +241,10 @@ impl Clone for InfluxWriter {
}

impl InfluxWriter {
pub fn host(&self) -> &str { self.host.as_str() }

pub fn db(&self) -> &str { self.db.as_str() }

/// Sends the `OwnedMeasurement` to the serialization thread.
///
#[cfg_attr(feature = "inlines", inline)]


Loading…
Cancel
Save