Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAndInstrument ¶
ParseAndInstrument parses and instruments the given conditional string for evaluation. This is the main external function related to conditionals.
func QueryConditionalString ¶
QueryConditionalString constructs the conditional string shown in the "Conditions" output field based on the query conditions and the query filter
Types ¶
type Node ¶
type Node interface { fmt.Stringer // Evaluates the conditional. Make sure that you called // instrument before calling this. Evaluate(types.Key) bool // Returns the set of attributes used in the conditional. Attributes() map[string]types.IPVersion // contains filtered or unexported methods }
Node describes an AST node for the conditional grammar This interface is not meant to be implemented by structs outside of this package.
type ValFilterNode ¶
type ValFilterNode struct { FilterType string ValFilter hashmap.ValFilter LeftNode bool // contains filtered or unexported fields }
ValFilterNode describes a node representing a ValFilter. LeftNode is true if the ValFilterNode occurs on the left side of a conjunction (andNode) and false if it occurs on the right side.
func (ValFilterNode) Attributes ¶
Click to show internal directories.
Click to hide internal directories.