Documentation ¶
Index ¶
- type EntityHook
- type GroupHook
- type Manager
- func (m *Manager) ConfigureEntityChains(h hookInserter)
- func (m *Manager) ConfigureGroupChains(h hookInserter)
- func (m *Manager) InvokeEntityProcessing(opts common.PluginOpts) (common.PluginResult, error)
- func (m *Manager) InvokeGroupProcessing(opts common.PluginOpts) (common.PluginResult, error)
- func (m *Manager) LoadPlugins()
- func (m *Manager) RegisterEntityHooks()
- func (m *Manager) RegisterGroupHooks()
- func (m *Manager) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityHook ¶
type EntityHook struct {
// contains filtered or unexported fields
}
EntityHook satisfies the type for the entity tree system.
func (EntityHook) Name ¶
func (h EntityHook) Name() string
Name returns the dynamically generated name based on which plugin action this hook will invoke.
func (EntityHook) Priority ¶
func (h EntityHook) Priority() int
Priority looks up the hook priority from the action it is performing.
type GroupHook ¶
type GroupHook struct {
// contains filtered or unexported fields
}
GroupHook satisfies the type for the group tree system.
func (GroupHook) Name ¶
Name returns the dynamically generated name based on which plugin action this hook will invoke.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a mechanism to keep track of all plugins and handle the integration with the tree.
func (*Manager) ConfigureEntityChains ¶
func (m *Manager) ConfigureEntityChains(h hookInserter)
ConfigureEntityChains is called with a reference to a hookInserter which will insert the named hook into the named chain.
func (*Manager) ConfigureGroupChains ¶
func (m *Manager) ConfigureGroupChains(h hookInserter)
ConfigureGroupChains is called with a reference to a hookInserter which will insert the named hook into the named chain.
func (*Manager) InvokeEntityProcessing ¶
func (m *Manager) InvokeEntityProcessing(opts common.PluginOpts) (common.PluginResult, error)
InvokeEntityProcessing calls ProcessEntity in every plugin.
func (*Manager) InvokeGroupProcessing ¶
func (m *Manager) InvokeGroupProcessing(opts common.PluginOpts) (common.PluginResult, error)
InvokeGroupProcessing calls ProcessGroup in every plugin.
func (*Manager) LoadPlugins ¶
func (m *Manager) LoadPlugins()
LoadPlugins loads all plugins either directly from a dynamic discovery, or from a statically defined list.
func (*Manager) RegisterEntityHooks ¶
func (m *Manager) RegisterEntityHooks()
RegisterEntityHooks handles the generation and registration of hooks in the entity subsystem.
func (*Manager) RegisterGroupHooks ¶
func (m *Manager) RegisterGroupHooks()
RegisterGroupHooks handles the generation and registration of hooks in the group subsystem.