factory

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterFactory

type FilterFactory[T any] struct {
	BoolFilterFactory        bool_filter.BoolFilterFactory
	NumberFilterFactory      number_filter.NumberFilterFactory
	NumberArrayFilterFactory number_array_filter.NumberArrayFilterFactory
	StringFilterFactory      string_filter.StringFilterFactory
	StringArrayFilterFactory string_array_filter.StringArrayFilterFactory
	SceneFilterFactory       internalscenefilter.SceneFilterFactory[T]
	LogicFilterFactory       logic_filter.LogicFilterFactory[T]
}

func NewFilterFactory

func NewFilterFactory[T any]() *FilterFactory[T]

func (*FilterFactory[T]) Get

func (f *FilterFactory[T]) Get(key string) (types.IFilter[T], errors.FilterError)

func (*FilterFactory[T]) WithSceneFilter added in v0.0.5

func (f *FilterFactory[T]) WithSceneFilter(sceneFilter scene_filter.ISceneFilter[T]) *FilterFactory[T]

func (*FilterFactory[T]) WithSceneFilters

func (f *FilterFactory[T]) WithSceneFilters(sceneFilters []scene_filter.ISceneFilter[T]) *FilterFactory[T]

type IFilterFactory

type IFilterFactory[T any] interface {
	Get(key string) (types.IFilter[T], errors.FilterError)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL