Interface for data processing components that can retrieve a page of data items by a filter.
Description
The IFilteredPageReader[T any]
interface is used by data processing components that can retrieve a page of data items through the use of a filter.
- T any type
Methods
GetPageByFilter
Gets a page of data items using filter parameters.
GetPageByFilter(ctx context.Context, correlation_id string, filter *data.FilterParams, paging *data.PagingParams, sort *data.SortParams) (page DataPage[T], err error)
- ctx: context.Context - operation context.
- context: IContext - (optional) a context to trace execution through a call chain.
- filter: *data.FilterParams - (optional) filter parameters
- paging: *data.PagingParams - (optional) paging parameters
- sort: *data.SortParams - (optional) sort parameters
- returns: (page DataPage[T], err error) - list of items