Documentation ¶
Index ¶
- func ApplyFilters[T any](calls []T, searchable clause.FieldSearchable, ...) ([]T, error)
- func ApplyLimits[T any](calls []T, offset int, limit int) []T
- func FSP[T any](objs []T, searchable clause.FieldSearchable, FilterFunc GetFieldValueFunc[T], ...) error
- func SortSlice[T any](items []T, instructions []clause.ExpressionOrderBy, ...) error
- type GetFieldValueFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFilters ¶
func ApplyFilters[T any]( calls []T, searchable clause.FieldSearchable, getFieldValueFunc GetFieldValueFunc[T], expression *clause.ExpressionWhere, ) ([]T, error)
func ApplyLimits ¶
func FSP ¶
func FSP[T any](objs []T, searchable clause.FieldSearchable, FilterFunc GetFieldValueFunc[T], SorterFunc GetFieldValueFunc[T], m *model.Meta[T], ) error
func SortSlice ¶
func SortSlice[T any]( items []T, instructions []clause.ExpressionOrderBy, searchable clause.FieldSearchable, getValueFunc GetFieldValueFunc[T], ) error
Types ¶
type GetFieldValueFunc ¶
Click to show internal directories.
Click to hide internal directories.