Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPlugin ¶
func RegisterPlugin(name string, p PluginFactory)
Types ¶
type CoreConfig ¶
type PluginFactory ¶
type PluginFactory interface{}
Requirements for PluginFactories are as follows: 1. Be a function 2. Return at least 1 value 3. The last return value is an error
Anything before the last argument will be treated as values this plugin provides. Anything this package needs should be taken in as an argument to the constructor.
Unfortunately, PluginFactories are not type safe because of the requirements for dependency injection to work, but as plugins are only loaded on startup (and not for every event) these should be simple to test.
Click to show internal directories.
Click to hide internal directories.