Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exports ¶
type Exports struct {
// Default is what will be the `default` export of a module
Default interface{}
// Named is the named exports of a module
Named map[string]interface{}
}
Exports is representation of ESM exports of a module
type Instance ¶
type Instance interface {
Exports() Exports
}
Instance is what a module needs to return
type Module ¶
type Module interface {
// NewModuleInstance will get modules.VU that should provide the module with a way to interact with the VU.
// This method will be called for *each* VU that imports the module *once* per that VU.
NewModuleInstance(VU) Instance
}
Module is the interface js modules should implement in order to get access to the VU
Click to show internal directories.
Click to hide internal directories.