Skip to content

Commit

Permalink
Merge pull request #9 from slavaromanov/master
Browse files Browse the repository at this point in the history
migrate to influxdb1-client/v2
  • Loading branch information
cbrake authored Oct 25, 2019
2 parents 86de6eb + 9f3139e commit 95f79ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

influxClient "github.com/influxdata/influxdb/client/v2"
influxClient "github.com/influxdata/influxdb1-client/v2"
)

var reRemoveExtraSpace = regexp.MustCompile(`\s\s+`)
Expand Down Expand Up @@ -108,6 +108,11 @@ func (c *helperClient) Query(q influxClient.Query) (*influxClient.Response, erro
return c.client.Query(q)
}

// QueryAsChunk -
func (c *helperClient) QueryAsChunk(q influxClient.Query) (*influxClient.ChunkedResponse, error) {
return c.client.QueryAsChunk(q)
}

// Close releases any resources a Client may be using.
func (c *helperClient) Close() error {
return c.client.Close()
Expand Down
2 changes: 1 addition & 1 deletion decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"time"

influxModels "github.com/influxdata/influxdb/models"
influxModels "github.com/influxdata/influxdb1-client/models"
"github.com/mitchellh/mapstructure"
)

Expand Down
2 changes: 1 addition & 1 deletion decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

influxModels "github.com/influxdata/influxdb/models"
influxModels "github.com/influxdata/influxdb1-client/models"
)

func TestDecode(t *testing.T) {
Expand Down

0 comments on commit 95f79ac

Please sign in to comment.