package
0.3.0
Repository: https://github.com/bookingcom/carbonapi.git
Documentation: pkg.go.dev

# Functions

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.
ParseExpr actually do all the parsing.
TruthyBool evaluates a string into a boolean.

# Constants

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.
ErrBraceInBrackets is a parse error returned when an expression has brace within brackets.
ErrCommaInBrackets is a parse error returned when an expression has comma within brackets.
ErrDifferentCountMetrics is an eval error returned when a function that works on pairs of metrics receives arguments having different number of metrics.
ErrInvalidArgumentValue is an eval error returned when a function received an argument that has the right type but invalid value.
ErrMissingArgument is an eval error returned when a argument is missing.
ErrMissingBrace is a parse error returned when an expression is missing an opening or closing brace.
ErrMissingBracket is a parse error returned when an expression is missing an opening or closing bracket.
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.
ErrNestedBrackets is a parse error returned when an expression has nested brackets.
ErrSeriesDoesNotExist is an eval error returned when a requested time series argument does not exist.
ErrSpacesInBraces is a parse error returned when an expression has space in braces.
ErrSpacesInBrackets is a parse error returned when an expression has space in brackets.
ErrSpacesInMetricName is a parse error returned when an expression has space in metric name.
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.

# 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.
ParseError is a type of errors returned from the parser.