plugin

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalManager = &PluginManager{
	plugins: make(map[string]*plugin.Plugin),
	errors:  make(map[string]error),
}

Functions

This section is empty.

Types

type CompileResult

type CompileResult struct {
	Package    Package
	PluginPath string
	Success    bool
	Error      error
}

func Compile

func Compile(pkg Package) CompileResult

func CompileAll

func CompileAll(packages []Package) []CompileResult

type LoadResult

type LoadResult struct {
	Package Package
	Loaded  *LoadedPlugin
	Success bool
	Error   error
}

func Load

func Load(pluginPath string, pkg Package) LoadResult

func LoadAll

func LoadAll(compileResults []CompileResult) []LoadResult

type LoadedPlugin

type LoadedPlugin struct {
	Package   Package
	Builder   *api.Builder
	PluginPtr *plugin.Plugin
}

func (*LoadedPlugin) GetRequires

func (l *LoadedPlugin) GetRequires() []api.RequireInfo

type Package

type Package struct {
	Name string
	Path string
	Dir  string
}

func Scan

func Scan(rootDir string) ([]Package, error)

type PluginManager added in v0.0.8

type PluginManager struct {
	// contains filtered or unexported fields
}

func (*PluginManager) Open added in v0.0.8

func (m *PluginManager) Open(path string) (*plugin.Plugin, error)

Jump to

Keyboard shortcuts

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