diff --git a/README.md b/README.md index ff59ca9..285ba6f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ See [GoDoc](https://godoc.org/github.com/cbrake/influxdbhelper) for more documen ## Install ``` -go get github.com/influxdata/influxdb/client/v2 +go get github.com/influxdata/influxdb1-client go get github.com/cbrake/influxdbhelper ``` @@ -27,7 +27,7 @@ import ( "time" "github.com/cbrake/influxdbhelper" - client "github.com/influxdata/influxdb/client/v2" + client "github.com/influxdata/influxdb1-client/v2" ) const ( @@ -163,7 +163,7 @@ Todo: * [x] handle larger query datasets (multiple series, etc) * [x] add write capability (directly write Go structs into influxdb) * [x] add godoc documentation -* [ ] get working with influxdb 1.7 client +* [x] get working with influxdb 1.7 client * [ ] see if still applicable for influxdb 2.x * [ ] decode/encode val0, val1, val2 fields in influx to Go array * [ ] use Go struct field tags to help build SELECT statement diff --git a/examples/writeread.go b/examples/writeread.go index 95c1f18..222f586 100644 --- a/examples/writeread.go +++ b/examples/writeread.go @@ -5,7 +5,7 @@ import ( "time" "github.com/cbrake/influxdbhelper" - client "github.com/influxdata/influxdb/client/v2" + client "github.com/influxdata/influxdb1-client/v2" ) const ( diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..568f926 --- /dev/null +++ b/go.mod @@ -0,0 +1,8 @@ +module github.com/slavaromanov/influxdbhelper + +go 1.13 + +require ( + github.com/influxdata/influxdb1-client v0.0.0-20190809212627-fc22c7df067e + github.com/mitchellh/mapstructure v1.1.2 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..70f2017 --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +github.com/influxdata/influxdb1-client v0.0.0-20190809212627-fc22c7df067e h1:txQltCyjXAqVVSZDArPEhUTg35hKwVIuXwtQo7eAMNQ= +github.com/influxdata/influxdb1-client v0.0.0-20190809212627-fc22c7df067e/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=