Documentation
¶
Overview ¶
Plugin loading code.
Eli Bendersky [https://eli.thegreenplace.net] This code is in the public domain.
Package plugin serves as the bridge between the main application and plugins.
Eli Bendersky [https://eli.thegreenplace.net] This code is in the public domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginManager ¶
type PluginManager struct {
// contains filtered or unexported fields
}
func LoadPlugins ¶
func LoadPlugins(path string) (*PluginManager, error)
LoadPlugins loads plugins from the directory with the given path, looking for all .so files in there. It creates a new PluginManager and registers the plugins with it.
func (*PluginManager) RegisterPlugin ¶
func (pm *PluginManager) RegisterPlugin(pluginName string, validator validation.Validator)
func (*PluginManager) RunPluginValidators ¶
func (pm *PluginManager) RunPluginValidators(commit *parser.ConventionalCommit) (results validation.ValidationsResult, err error)
Click to show internal directories.
Click to hide internal directories.