package
1.3.5
Repository: https://github.com/silenceshell/influxdb.git
Documentation: pkg.go.dev

# Functions

CheckTime checks that a time is within the safe range.
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.
NewStatistic returns an initialized Statistic.
NewTag returns a new Tag.
NewTags returns a new Tags from a map.
ParseConsistencyLevel converts a consistency level string to the corresponding ConsistencyLevel const.
ParseKey returns the measurement name and tags from a point.
No description provided by the author
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.
No description provided by the author
SafeCalcTime safely calculates the time given.

# 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.
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 minumum time that can be represented.
String indicates the field's type is string.

# Variables

ErrInvalidConsistencyLevel is returned when parsing the string version of a consistency level.
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.

# 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.

# 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.