package
0.0.0-20231129065837-deba56b04b66
Repository: https://github.com/chipartem/k6.git
Documentation: pkg.go.dev

# Packages

Package k6 implements the module imported as 'k6' from inside k6.

# Functions

NewLegacyRequireImpl creates a new LegacyRequireImpl.
NewModuleResolver returns a new module resolution instance that will resolve.
NewModuleSystem returns a new ModuleSystem for the provide VU using the provided resoluter.
Register the given mod as an external JavaScript module that can be imported by name.

# Structs

Exports is representation of ESM exports of a module.
LegacyRequireImpl is a legacy implementation of `require()` that is not compatible with CommonJS as it loads modules relative to the currently required file, instead of relative to the file the `require()` is written in.
ModuleResolver knows how to get base Module that can be initialized.
ModuleSystem is implementing an ESM like module system to resolve js modules for k6 usage.

# Interfaces

Instance is what a module needs to return.
Module is the interface js modules should implement in order to get access to the VU.
VU gives access to the currently executing VU to a module Instance.

# Type aliases

FileLoader is a type alias for a function that returns the contents of the referenced file.