Documentation
¶
Overview ¶
Package plugin provides a goja-based JavaScript plugin registry. OSS users drop .js files into the configured plugin directory; each file can call on(eventName, fn) to subscribe to domain events. Handlers run asynchronously with a 5-second timeout per invocation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds plugin event handlers loaded from JS files.
func NewRegistry ¶
NewRegistry creates an empty Registry.
Click to show internal directories.
Click to hide internal directories.