plugins

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 8 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL