influxdb/tsdb/cursors
Jeff Wendling 810833f33f chore: refactor reads service and make it consumable externally
This pulls in the code that allows doing reads with flux into the
platform repo, and removes extra.go.

The reusable portion is under storage/reads, where the concrete
implementation for one of the platform's engines is in
storage/readservice.

In order to make this more reusable, the cursors had to move into
their own package, decoupling it from all of the other code in the
tsdb package. tsdb/cursors is this new package, and type/function
aliases have been added to the tsdb package to point at it.

The models package already is very light on transitive dependencies
and so it was allowed to be depended on in a concrete way in the
cursors package.

Finally, the protobuf definitions for issuing GRPC reads has been
moved into its own package for two reasons:
    1. It's a clean separation, and helps keep it that way.
    2. Many/most consumers will not be using GRPC. We just
       use the datatypes to express the API which helps making
       a GRPC server easier.
It is left up to future refactorings (specifically ones that involve
GPRC) to determine if these types should remain, or if there is a
cleaner way.

There's still some dependencies on both github.com/influxdata/influxql
and github.com/influxdata/influxdb/logger that we can hopefully remove
in future refactorings.
2018-10-09 09:51:13 -06:00
..
arrayvalues.gen.go chore: refactor reads service and make it consumable externally 2018-10-09 09:51:13 -06:00
arrayvalues.gen.go.tmpl chore: refactor reads service and make it consumable externally 2018-10-09 09:51:13 -06:00
arrayvalues.gen.go.tmpldata chore: refactor reads service and make it consumable externally 2018-10-09 09:51:13 -06:00
arrayvalues.gen_test.go chore: refactor reads service and make it consumable externally 2018-10-09 09:51:13 -06:00
arrayvalues_test.go chore: refactor reads service and make it consumable externally 2018-10-09 09:51:13 -06:00
cursor.go chore: refactor reads service and make it consumable externally 2018-10-09 09:51:13 -06:00