Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtoiDefault ¶
AtoiDefault converts a string to int and returns def on parse failure.
func MapPredicates ¶
MapPredicates projects parsed predicates into consumer-specific predicate types.
func ParsePredicateKey ¶
ParsePredicateKey splits filter keys like "title__ilike".
func ValuesFromAny ¶
ValuesFromAny normalizes scalar/array filter values into a string slice.
Types ¶
type Options ¶
type Options[T any] struct { Page int PerPage int SortBy string SortDesc bool Filters map[string]any Predicates []T Search string }
Options projects Result into consumer-specific predicate types. The field layout intentionally mirrors admin and boot list option structs.
type Predicate ¶
Predicate describes a single parsed operator-aware filter.
func PredicatesFromFilters ¶
PredicatesFromFilters converts a filter map into normalized predicates.
Click to show internal directories.
Click to hide internal directories.