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, correlation_id string, filter *data.FilterParams, sort *data.SortParams) (items []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
  • sort: *data.SortParams - (optional) sort parameters
  • returns: (items []T, err error) - list of items