Documentation ¶
Index ¶
- Constants
- func GetOrLoadMaestroPlugin(opts *maestroSpecs.PluginOpts, logger maestroSpecs.Logger, path string, ...) (plugin *plugin.Plugin, err error)
- func InspectPlugin(p *plugin.Plugin)
- func NewPluginLogger(pluginName string) (logger *log.PrefixedLogger)
- func StopPeriodicOfPlugin(path string, routineName string) (err error)
- type PeriodicCallback
- type Plug
Constants ¶
View Source
const ( PLUGIN_LOADING = iota PLUGIN_LOADED = iota PLUGIN_FAILED = iota )
Variables ¶
This section is empty.
Functions ¶
func GetOrLoadMaestroPlugin ¶
func GetOrLoadMaestroPlugin(opts *maestroSpecs.PluginOpts, logger maestroSpecs.Logger, path string, callback PeriodicCallback) (plugin *plugin.Plugin, err error)
GetOrLoadMaestroPlugin loads a plugin. It may block while loading the plugin and while waiting for another caller to load the plugin (in which case it will unblock for the other caller and this caller). If the plugin is already loaded it will return the plugin without blocking.
func InspectPlugin ¶
func NewPluginLogger ¶
func NewPluginLogger(pluginName string) (logger *log.PrefixedLogger)
NewPluginLogger returns a new logger object handed to a plugin
func StopPeriodicOfPlugin ¶
StopPeriodicOfPlugin - stops periodically calling the periodic function of routineName in the plugin already loaded with path
Types ¶
type PeriodicCallback ¶
type PeriodicCallback func(param interface{})
PeriodicCallback is a function spec which is used for an optionalk user supplied callback which is called ever time a plugin's periodic functions are called
Click to show internal directories.
Click to hide internal directories.