Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
Filename string
Program *goja.Program
Options lib.Options
BaseInitContext *InitContext
}
A Bundle is a self-contained bundle of scripts and resources. You can use this to produce identical BundleInstance objects.
func (*Bundle) Instantiate ¶
func (b *Bundle) Instantiate() (*BundleInstance, error)
Instantiates a new runtime from this bundle.
type BundleInstance ¶
A BundleInstance is a self-contained instance of a Bundle.
type Console ¶
func NewConsole ¶
func NewConsole() *Console
type InitContext ¶
type InitContext struct {
// Console object.
Console *Console
// contains filtered or unexported fields
}
Provides APIs for use in the init context.
func NewInitContext ¶
type Runner ¶
type Runner struct {
Bundle *Bundle
// contains filtered or unexported fields
}
func (*Runner) ApplyOptions ¶
func (*Runner) GetDefaultGroup ¶
func (*Runner) GetOptions ¶
type VU ¶
type VU struct {
BundleInstance
Runner *Runner
ID int64
Iteration int64
VUContext *VUContext
}
func (*VU) Reconfigure ¶
Click to show internal directories.
Click to hide internal directories.