filters

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCondition

func FromCondition(c query.Condition, s []query.Sorting, limit, offset int) query.Filter

FromCondition constructs new filter from condition with appended sorting, limit and offset.

func Map

func Map(f query.Filter, mf func(query.Rule) query.Rule) query.Filter

Map applies mapping function to all rules (including nested) within given filter.

func New

func New(logic query.Logic, rules []query.Rule, conditions []query.Condition, sorting []query.Sorting, limit, offset int) query.Filter

New constructs new filter object with requested data

Types

This section is empty.

Jump to

Keyboard shortcuts

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