registry

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegisteredModules

func GetRegisteredModules() []string

GetRegisteredModules returns a copy of all registered module names

func InitializeAllModules

func InitializeAllModules(config ModuleConfig) error

InitializeAllModules initializes all registered modules with the given configuration

func RegisterModule

func RegisterModule(name string, initializer ModuleInitializer)

RegisterModule registers a module initializer with the given name

Types

type ModuleConfig

type ModuleConfig struct {
	Registry   *require.Registry
	EventLoop  *eventloop.EventLoop
	FileSystem filesystem.FileSystem
	BasePath   string
	Version    string
	VM         *js.Runtime
}

ModuleConfig contains all the configuration needed to initialize a module

type ModuleInitializer

type ModuleInitializer func(config ModuleConfig) error

ModuleInitializer is a function that initializes a module with the given configuration

Jump to

Keyboard shortcuts

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