package
1.0.0
Repository: https://github.com/grafana/carbonapi.git
Documentation: pkg.go.dev

# Functions

Define new template.
IntervalString converts a sign and string into a number of seconds.
IsNameChar checks if specified char is actually a valid (from graphite's protocol point of view).
NewConstExpr Creates new Constant expression.
NewExpr creates a new expression with specified target and arguments.
NewExprTyped creates a new expression with specified target and arguments.
NewNameExpr Creates new expression with specified name only.
NewTargetExpr Creates new expression with specified target only.
NewValueExpr Creates new Value expression.
Parse parses string as an expression.
ParseExpr actually do all the parsing.
No description provided by the author

# Constants

EtBool is a constant for 'Bool' type expression.
EtConst is a const for 'Constant' type expression.
EtFunc is a const for 'Function' type expression.
EtName is a const for 'Series Name' type expression.
EtString is a const for 'String' type expression.

# Variables

ErrBadType is an eval error returned when a argument has wrong type.
ErrMissingArgument is an eval error returned when a argument is missing.
ErrMissingComma is a parse error returned when an expression is missing a comma.
ErrMissingExpr is a parse error returned when an expression is missing.
ErrMissingQuote is a parse error returned when an expression is missing a quote.
ErrMissingTimeseries is an eval error returned when a time series argument is missing.
ErrSeriesDoesNotExist is an eval error returned when a requested time series argument does not exist.
ErrUnexpectedCharacter is a parse error returned when an expression contains an unexpected character.
ErrUnknownTimeUnits is an eval error returned when a time unit is unknown to system.
RangeTables is an array of *unicode.RangeTable.

# Structs

MetricRequest contains all necessary data to request a metric.
NodeOrTag structure contains either Node (=integer) or Tag (=string) They are distinguished by "IsTag" = true in case it's tag.

# Interfaces

Expr defines an interface to talk with expressions.

# Type aliases

ArgName is a type for Name Argument.
ArgValue is a type for Value Argument.
ExprType defines a type for expression types constants (e.x.
NamedArgs is a type for Hashmap of Named Arguments.