mql

package
v0.17.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryExpr

type BinaryExpr struct {
	Op    string
	Left  Expr
	Right Expr
}

func (*BinaryExpr) Eval

func (e *BinaryExpr) Eval(input map[string]interface{}) bool

type Expr

type Expr interface {
	Eval(input map[string]interface{}) bool
}

type GroupExpr

type GroupExpr struct {
	Inner Expr
}

func (*GroupExpr) Eval

func (e *GroupExpr) Eval(input map[string]interface{}) bool

type NotExpr

type NotExpr struct {
	Expr Expr
}

func (*NotExpr) Eval

func (e *NotExpr) Eval(input map[string]interface{}) bool

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(input string) *Parser

func (*Parser) Parse

func (p *Parser) Parse() (Expr, error)

type TermExpr

type TermExpr struct {
	Key   string
	Op    string // ":" or "IN" or "NOT IN"
	Value interface{}
}

func (*TermExpr) Eval

func (e *TermExpr) Eval(input map[string]interface{}) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL