modulepackage
0.1.4
Repository: https://github.com/golain-io/go-fluxbuilder.git
Documentation: pkg.go.dev
# README
gofluxbuilder
A package to build and generate flux queries with ease!
Usage
The current features include:
- From
- Range
- Filter
The package is as easy to use as:
result, error := gofluxbuilder.NewGoFluxQueryBuilder()
.From(gofluxbuilder.FromBuilder{Bucket: "birdy"})
.Range(gofluxbuilder.RangeBuilder{Start: "-4y"})
.Filter(gofluxbuilder.NewFilterBuilder().
Equal("_measurement", "migration"))
.Query(context.Background(), &cl)
Currently the following are supported in Filters
:
and
or
==
>
<
>=
<=
# Functions
NewFilterBuilder allows to create Filters for flux query.
NewGoFluxQueryBuilder is the constructor to build flux queries.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
QueryBuilder is the persistent struct that allows us to hold the information.
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
Builder - The common interface of all various Builder structs.
# Type aliases
No description provided by the author