plugins

package
v0.0.0-...-afea435 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Global = NewManager()

Global is the shared plugins manager instance

Functions

This section is empty.

Types

type Manager

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

Manager loads plugins, reads their Hooks maps, and dispatches entries.

func NewManager

func NewManager() *Manager

NewManager creates a Yaegi interpreter, preloads the standard library, and initializes hook storage.

func (*Manager) Entry

func (manager *Manager) Entry(name string)

Entry fires all handlers registered under the given hook name.

func (*Manager) LoadPlugins

func (manager *Manager) LoadPlugins(dir string)

LoadPlugins scans dir for *.go plugins, Eval's them, then looks for a main.Hooks variable of type map[string]func().

Jump to

Keyboard shortcuts

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