package
2.7.11
Repository: https://github.com/influxdata/influxdb.git
Documentation: pkg.go.dev

# Packages

Package control keeps track of resources and manages queries.
Package language exposes the flux parser as an interface.

# Functions

AddDialectMappings adds the mappings for the no-content dialects.
ConditionalLogging returns a LoggingProxyQueryServiceOption that only logs if the passed in function returns true.
ContextWithRequest returns a new context with a reference to the request.
EvalAST will evaluate and run an AST.
FromBucketService wraps an influxdb.BucketService in the BucketLookup interface.
FromOrganizationService wraps a influxdb.OrganizationService in the OrganizationLookup interface.
FromSecretService wraps a influxdb.OrganizationService in the OrganizationLookup interface.
Parse will take flux source code and produce a package.
RequestFromContext retrieves a *Request from a context.
SetReturnNoContent sets the header for a Request to return no content.
ToGroupMode accepts the group mode from Flux and produces the appropriate storage group mode.

# Constants

GroupModeBy produces a table for each unique value of the specified GroupKeys.
GroupModeNone merges all series into a single group.
ZeroTime is the Unix nanosecond timestamp for no time.

# Variables

ErrQueryInterrupted is an error returned when the query is interrupted.
OpenAuthorizer can be shared by all goroutines.

# Structs

BooleanPoint represents a point with a bool value.
BucketLookup converts Flux bucket lookups into influxdb.BucketService calls.
FloatPoint represents a point with a float64 value.
IntegerPoint represents a point with a int64 value.
Interval represents a repeating interval for a query.
IteratorCost contains statistics retrieved for explaining what potential cost may be incurred by instantiating an iterator.
IteratorOptions is an object passed to CreateIterator to specify creation options.
IteratorStats represents statistics about an iterator.
Log captures a query and any relevant metadata for the query execution.
LoggingProxyQueryService wraps a ProxyQueryService and logs the queries.
NoContentDialect is a dialect that provides an Encoder that discards query results.
NoContentWithErrorDialect is a dialect that provides an Encoder that discards query results, but it encodes runtime errors from the Flux query in CSV format.
OrganizationLookup converts organization name lookups into influxdb.OrganizationService calls.
ProxyQueryServiceAsyncBridge implements ProxyQueryService while consuming an AsyncQueryService.
ProxyRequest specifies a query request and the dialect for the results.
QueryServiceBridge implements the QueryService interface while consuming the AsyncQueryService interface.
QueryServiceProxyBridge implements QueryService while consuming a ProxyQueryService interface.
ReadWindowAggregateSpec defines the options for WindowAggregate.
REPLQuerier implements the repl.Querier interface while consuming a QueryService.
Request represents the query to run.
SecretLookup wraps the influxdb.SecretService to perform lookups based on the organization in the context.
StringPoint represents a point with a string value.
Tags represent a map of keys and values.
TagSet is a fundamental concept within the query system.
UnsignedPoint represents a point with a uint64 value.

# Interfaces

AsyncQueryService represents a service for performing queries where the results are delivered asynchronously.
Authorizer determines if certain operations are authorized.
BooleanIterator represents a stream of boolean points.
FloatIterator represents a stream of float points.
IntegerIterator represents a stream of integer points.
Iterator represents a generic interface for all Iterators.
Logger persists metadata about executed queries.
ProxyQueryService performs queries and encodes the result into a writer.
QueryService represents a type capable of performing queries.
StorageReader is an interface for reading tables from the storage subsystem.
StringIterator represents a stream of string points.
TableIterator is a table iterator that also keeps track of cursor statistics from the storage engine.
UnsignedIterator represents a stream of unsigned points.

# Type aliases

LoggingProxyQueryServiceOption provides a way to modify the behavior of LoggingProxyQueryService.
RequestHeaderOption is a function that mutates the header associated to a Request.