Documentation ¶
Index ¶
Constants ¶
View Source
const ( OpEq = Operator("=") OpNotEq = Operator("!=") OpLt = Operator("<") OpLte = Operator("<=") OpGt = Operator(">") OpGte = Operator(">=") OpLike = Operator("~") OpNotLike = Operator("!~") OpUnknown = Operator("") )
Available operators to use in conditions
Variables ¶
View Source
var ( // ErrUnsupportedOperator represents case of using unsupported operator (app or type of value by path) ErrUnsupportedOperator = errors.New("unsupported operator") // ErrUnsupportedType represents case appearing unknown type of field value ErrUnsupportedType = errors.New("unsupported type") )
View Source
var ErrInvalidOperator = errors.New("invalid operator")
ErrInvalidOperator appears when pass a string that doesn't match any known operator
Functions ¶
Types ¶
type Condition ¶
type Condition struct {
// contains filtered or unexported fields
}
Condition is parsed string expression. It used to solve inclusion of stream elem
func NewConditionFromStr ¶
NewConditionFromStr builds condition object from string representation
Click to show internal directories.
Click to hide internal directories.