Documentation ¶
Index ¶
- Variables
- func GetFilterPlugin(name string) (state.FilterPlugin, error)
- func GetScorePlugin(name string) (state.ScorePlugin, error)
- func RegisterFP(name string, factory state.FilterPlugin) error
- func RegisterSP(name string, factory state.ScorePlugin) error
- func UnregisterFP(name string) error
- func UnregisterSP(name string) error
- type RegistryFP
- type RegistrySP
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FilterRegistry = make(RegistryFP) ScoreRegistry = make(RegistrySP) )
Functions ¶
func GetFilterPlugin ¶
func GetFilterPlugin(name string) (state.FilterPlugin, error)
func GetScorePlugin ¶
func GetScorePlugin(name string) (state.ScorePlugin, error)
func RegisterFP ¶
func RegisterFP(name string, factory state.FilterPlugin) error
Register adds a new plugin to the registry. If a plugin with the same name exists, it returns an error.
func RegisterSP ¶
func RegisterSP(name string, factory state.ScorePlugin) error
Register adds a new plugin to the registry. If a plugin with the same name exists, it returns an error.
func UnregisterFP ¶
Unregister removes an existing plugin from the registry. If no plugin with the provided name exists, it returns an error.
func UnregisterSP ¶
Unregister removes an existing plugin from the registry. If no plugin with the provided name exists, it returns an error.
Types ¶
type RegistryFP ¶
type RegistryFP map[string]state.FilterPlugin
RegistryFP is a collection of all available filter plugins.
type RegistrySP ¶
type RegistrySP map[string]state.ScorePlugin
RegistrySP is a collection of all available scoring plugins.
Click to show internal directories.
Click to hide internal directories.