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.
- correlationId: string - (optional) transaction id used to trace execution through the 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