Documentation ¶
Index ¶
- type FilterService
- func (f *FilterService[T]) FilterOut(rawFilter string, matchTargets []T) []T
- func (f *FilterService[T]) Match(rawFilter string, matchTarget T) errors.FilterError
- func (f *FilterService[T]) WithSceneFilter(sceneFilterCreator SceneFilterCreator[T]) *FilterService[T]
- func (f *FilterService[T]) WithSceneFilters(sceneFilterCreators []SceneFilterCreator[T]) *FilterService[T]
- type SceneFilterCreator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterService ¶
type FilterService[T any] struct { // contains filtered or unexported fields }
func NewFilterService ¶
func NewFilterService[T any]() *FilterService[T]
func (*FilterService[T]) FilterOut ¶ added in v0.0.5
func (f *FilterService[T]) FilterOut(rawFilter string, matchTargets []T) []T
func (*FilterService[T]) Match ¶ added in v0.0.5
func (f *FilterService[T]) Match(rawFilter string, matchTarget T) errors.FilterError
func (*FilterService[T]) WithSceneFilter ¶ added in v0.0.5
func (f *FilterService[T]) WithSceneFilter(sceneFilterCreator SceneFilterCreator[T]) *FilterService[T]
func (*FilterService[T]) WithSceneFilters ¶ added in v0.0.5
func (f *FilterService[T]) WithSceneFilters(sceneFilterCreators []SceneFilterCreator[T]) *FilterService[T]
type SceneFilterCreator ¶ added in v0.0.5
type SceneFilterCreator[T any] func(filterFactory *factory.FilterFactory[T]) scene_filter.ISceneFilter[T]
Click to show internal directories.
Click to hide internal directories.