Categorygithub.com/xafelium/filter
modulepackage
0.4.0
Repository: https://github.com/xafelium/filter.git
Documentation: pkg.go.dev

# README

XM Go Filter

Abstract system to build query filter expressions for different target systems:

# Functions

No description provided by the author
No description provided by the author
And creates a new Condition by concatenating the conditions with "AND".
ArrayContains creates a new ArrayContainsCondition.
No description provided by the author
No description provided by the author
No description provided by the author
BuildPageMeta build the metadata for the provided pagination coordinates.
Contains creates a new ContainsCondition.
No description provided by the author
No description provided by the author
Equals creates a new EqualsCondition.
No description provided by the author
GreaterThan creates a new GreaterThanCondition.
GreaterThanOrEqual creates a new GreaterThanOrEqualCondition.
Group creates a new GroupCondition.
In creates a new InCondition.
No description provided by the author
No description provided by the author
LowerThan creates a new LowerThanCondition.
LowerThanOrEqual creates a new LowerThanOrEqualCondition.
goland:noinspection GoExportedFuncWithUnexportedType.
No description provided by the author
NewPageLinks creates a new pageLinks object.
NewPaginationFromArgs returns a new Pagination object based on the provided pagination arguments.
goland:noinspection GoExportedFuncWithUnexportedType.
Not creates a new NotCondition.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Or creates a new OrCondition.
Overlaps creates a new OverlapsCondition.
PageCount calculates to total number of pages.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Where creates a new WhereCondition.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AndCondition concatenates multiple Conditions by using the logical "AND".
ArrayContainsArrayCondition is an expression to filter values where one array contains another array.
ArrayContainsCondition is an expression to filter values contained in an array.
ArrayIsContainedCondition is an expression to filter values where on array is contained in another array.
ArraysOverlapCondition is an expression to filter values where arrays overlaps, that is, have any elements in common.
ContainsCondition filters strings containing a value.
EqualsCondition compares objects for equality.
GreaterThanCondition checks if a field is greater a value.
GreaterThanOrEqualCondition checks if a field is greater or equal a value.
GroupCondition groups multiple Conditions.
InCondition checks if a list of values is in a field.
No description provided by the author
LowerThanCondition checks if a field is lower than a values.
LowerThanOrEqualCondition checks if a field is lower or equal a value.
NotCondition negates the condition.
No description provided by the author
No description provided by the author
No description provided by the author
OrCondition concatenates multiple Conditions by using the logical "OR".
OverlapsCondition checks if two time ranges overlap.
PageMeta contains the pagination meta data.
Pagination contains pagination information.
No description provided by the author
No description provided by the author
No description provided by the author
WhereCondition is the "WHERE" clause.

# Interfaces

Condition contains methods to filter objects.
No description provided by the author
PageLinks contains methods for pagination links.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
Filter is a Condition.
No description provided by the author
SortParserFunc is a function to parse a sort string.