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

# Functions

AppendMakeKey appends the key derived from name and tags to dst and returns the extended buffer.
CheckTime checks that a time is within the safe range.
CheckToken returns an error when the given token is invalid for use as a tag or value key or measurement name.
CompareTags returns -1 if a < b, 1 if a > b, and 0 if a == b.
CopyTags returns a shallow copy of tags.
DeepCopyTags returns a deep copy of tags.
EscapeStringField returns a copy of in with any double quotes or backslashes with escaped values.
GetPrecisionMultiplier will return a multiplier for the precision specified.
MakeKey creates a key for a set of tags.
MustNewPoint returns a new point with the given measurement name, tags, fields and timestamp.
NewInlineFNV64a returns a new instance of InlineFNV64a.
NewPoint returns a new point with the given measurement name, tags, fields and timestamp.
NewPointFromBytes returns a new Point from a marshalled Point.
NewTag returns a new Tag.
NewTags returns a new Tags from a map.
NewTagsKeyValues returns a new Tags from a list of key, value pairs, ensuring the returned result is correctly sorted.
NewTagsKeyValuesStrings is equivalent to NewTagsKeyValues, except that it will allocate new byte slices for each key, value pair.
ParseConsistencyLevel converts a consistency level string to the corresponding ConsistencyLevel const.
ParseKey returns the measurement name and tags from a point.
ParsePoints returns a slice of Points from a text representation of a point with each point separated by newlines.
ParsePointsString is identical to ParsePoints but accepts a string.
ParsePointsWithPrecision is similar to ParsePoints, but allows the caller to provide a precision for time.
SafeCalcTime safely calculates the time given.
ValidKeyTokens returns true if the measurement name and all tags are valid.
ValidPrecision checks if the precision is known.
ValidTagTokens returns true if all the provided tag key and values are valid.
ValidToken returns true if the provided token is a valid unicode string, and only contains printable, non-replacement characters.

# Constants

Boolean indicates the field's type is boolean.
ConsistencyLevelAll requires all data nodes to acknowledge a write.
ConsistencyLevelAny allows for hinted handoff, potentially no write happened yet.
ConsistencyLevelOne requires at least one data node acknowledged a write.
ConsistencyLevelQuorum requires a quorum of data nodes to acknowledge a write.
Empty is used to indicate that there is no field.
Values used to store the field key and measurement name as special internal tags.
Float indicates the field's type is float.
Integer indicates the field's type is integer.
MaxKeyLength is the largest allowed size of the combined measurement and tag keys.
MaxNanoTime is the maximum time that can be represented.
MinNanoTime is the minimum time that can be represented.
String indicates the field's type is string.
Unsigned indicates the field's type is an unsigned integer.

# Variables

ErrInvalidConsistencyLevel is returned when parsing the string version of a consistency level.
ErrInvalidKevValuePairs is returned when the number of key, value pairs is odd, indicating a missing value.
ErrInvalidNumber is returned when a number is expected but not provided.
ErrInvalidPoint is returned when a point cannot be parsed correctly.
ErrPointMustHaveAField is returned when operating on a point that does not have any fields.
ErrTimeOutOfRange gets returned when time is out of the representable range using int64 nanoseconds since the epoch.
Predefined byte representations of special tag keys.

# Structs

Row represents a single row returned from the execution of a statement.
Statistic is the representation of a statistic used by the monitoring service.
Tag represents a single key/value tag pair.
TagKeysSet provides set operations for combining Tags.

# Interfaces

FieldIterator provides a low-allocation interface to iterate through a point's fields.
Point defines the values that will be written to the database.

# Type aliases

ConsistencyLevel represent a required replication criteria before a write can be returned as successful.
Fields represents a mapping between a Point's field names and their values.
FieldType represents the type of a field.
InlineFNV64a is an alloc-free port of the standard library's fnv64a.
Points represents a sortable list of points by timestamp.
Rows represents a collection of rows.
StatisticTags is a map that can be merged with others without causing mutations to either map.
Tags represents a sorted list of tags.