jsonexp

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type And

type And struct {
	Left  Expression
	Right Expression
}

func (*And) Matches

func (a *And) Matches(json string) (bool, error)

func (*And) String

func (a *And) String() string

type Expression

type Expression interface {
	Matches(json string) (bool, error)
}

func All

func All(expressions ...Expression) Expression

func Any

func Any(expressions ...Expression) Expression

type Operator

type Operator int8
const (
	UnknownOperator Operator = iota
	EqualOperator
	NotEqualOperator
	IncludesOperator
	ExcludesOperator
	RegexOperator
)

func OperatorFromString

func OperatorFromString(operator string) Operator

func (*Operator) String

func (o *Operator) String() string

type Or

type Or struct {
	Left  Expression
	Right Expression
}

func (*Or) Matches

func (o *Or) Matches(json string) (bool, error)

func (*Or) String

func (o *Or) String() string

type Pattern

type Pattern struct {
	Selector string
	Operator Operator
	Value    string
}

func (Pattern) Matches

func (p Pattern) Matches(json string) (bool, error)

func (Pattern) String

func (p Pattern) String() string

Jump to

Keyboard shortcuts

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