Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NodeComparison ¶
func NodeComparison(op influxdb.Operator) (datatypes.Node_Comparison, error)
NodeComparison convert influxdb.Operator to Node_Comparison.
func NodeTypeLiteral ¶
func NodeTypeLiteral(tr TagRuleNode) *datatypes.Node
NodeTypeLiteral convert a TagRuleNode to a nodeTypeLiteral.
Types ¶
type LogicalNode ¶
type LogicalNode struct { Operator LogicalOperator `json:"operator"` Children [2]Node `json:"children"` }
LogicalNode is a node type includes a logical expression with other nodes.
func (LogicalNode) ToDataType ¶
func (n LogicalNode) ToDataType() (*datatypes.Node, error)
ToDataType convert a LogicalNode to datatypes.Node.
type LogicalOperator ¶
type LogicalOperator int
LogicalOperator is a string type of logical operator.
var (
LogicalAnd LogicalOperator = 1
)
LogicalOperators
func (LogicalOperator) Value ¶
func (op LogicalOperator) Value() (datatypes.Node_Logical, error)
Value returns the node logical type.
type TagRuleNode ¶
type TagRuleNode influxdb.TagRule
TagRuleNode is a node type of a single tag rule.
func (TagRuleNode) ToDataType ¶
func (n TagRuleNode) ToDataType() (*datatypes.Node, error)
ToDataType convert a TagRuleNode to datatypes.Node.
Click to show internal directories.
Click to hide internal directories.