searchfilter

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindAll        = contracts.KindAll
	KindAnd        = contracts.KindAnd
	KindOr         = contracts.KindOr
	KindNot        = contracts.KindNot
	KindComparison = contracts.KindComparison
)
View Source
const (
	OpEQ        = contracts.OpEQ
	OpGT        = contracts.OpGT
	OpGTE       = contracts.OpGTE
	OpLT        = contracts.OpLT
	OpLTE       = contracts.OpLTE
	OpNE        = contracts.OpNE
	OpIn        = contracts.OpIn
	OpContains  = contracts.OpContains
	OpIContains = contracts.OpIContains
)

Variables

This section is empty.

Functions

func HasWildcard

func HasWildcard(values []string) bool

func MergeSources

func MergeSources(paramsSources, filterSources []string) (sources []string, denyAll bool)

func NormalizeLimit

func NormalizeLimit(limit int) int

Types

type Compiled

type Compiled = contracts.Compiled

func Compile

func Compile(expr Expression, peer string) (Compiled, error)

func ParseAndCompile

func ParseAndCompile(raw map[string]any, peer string) (Compiled, error)

type Expression

type Expression = contracts.Expression

func FlattenComparisons

func FlattenComparisons(expr Expression) []Expression

func Parse

func Parse(raw map[string]any) (Expression, error)

type Kind

type Kind = contracts.Kind

type Operator

type Operator = contracts.Operator

type UnsupportedFilterError

type UnsupportedFilterError = contracts.UnsupportedFilterError

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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