Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.02 KB

clients.md

File metadata and controls

28 lines (20 loc) · 1.02 KB

Clients

HTTP

There are 3 HTTP client for InfluxDB under chronicler project. All client have the same api with different backend under the hood.

All of them have functionality delegation to smaller client, as separate jars:

  • IO client (with suffix io)
  • Management client (with suffix management)

IO Client

If you need to make IO related operations like read/write - choose IO client. To create it call io method on Influx factory object like this:

val ioClient = InfluxIO(...) // constructor parameters may wary depends on backend

Management Client

If you need execute management operation like: create user/table/database/etc - choose Management client. To create it call management method on Influx factory object like this:

val managementClient = InfluxMng(...) // constructor parameters may wary depends on backend

All client have additional params in their constructor, for more information take a look on connect function or ask question on gitter.