IFilteredReader

Interface for data processing components that can retrieve a list of data items through the use of a filter.

Description

The IFilteredReader[T any] interface is used by data processing components that can retrieve a list of data items through the use of a filter.

  • T any type

Methods

GetListByFilter

Gets a list of data items using filter parameters.

GetListByFilter(ctx context.Context, context_id IContext, filter *data.FilterParams, sort *data.SortParams) (items []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
  • sort: *data.SortParams - (optional) sort parameters
  • returns: (items []T, err error) - list of items