Versions in this module Expand all Collapse all v0 v0.12.2 Apr 12, 2017 Changes in this version + type Bundle struct + BaseInitContext *InitContext + Filename string + Options lib.Options + Program *goja.Program + func NewBundle(src *lib.SourceData, fs afero.Fs) (*Bundle, error) + func (b *Bundle) Instantiate() (*BundleInstance, error) + type BundleInstance struct + Context *context.Context + Default goja.Callable + Runtime *goja.Runtime + type Console struct + Logger *log.Logger + func NewConsole() *Console + func (c Console) Debug(msg goja.Value, args ...goja.Value) + func (c Console) Error(msg goja.Value, args ...goja.Value) + func (c Console) Info(msg goja.Value, args ...goja.Value) + func (c Console) Log(msg goja.Value, args ...goja.Value) + func (c Console) Warn(msg goja.Value, args ...goja.Value) + type InitContext struct + Console *Console + func NewInitContext(rt *goja.Runtime, ctxPtr *context.Context, fs afero.Fs, pwd string) *InitContext + func (i *InitContext) Open(name string) (string, error) + func (i *InitContext) Require(arg string) goja.Value + type Runner struct + Bundle *Bundle + func New(src *lib.SourceData, fs afero.Fs) (*Runner, error) + func (r *Runner) ApplyOptions(opts lib.Options) + func (r *Runner) GetDefaultGroup() *lib.Group + func (r *Runner) GetOptions() lib.Options + func (r *Runner) NewVU() (lib.VU, error) + type VU struct + ID int64 + Iteration int64 + Runner *Runner + VUContext *VUContext + func (u *VU) Reconfigure(id int64) error + func (u *VU) RunOnce(ctx context.Context) ([]stats.Sample, error) + type VUContext struct + Console *Console + func NewVUContext() *VUContext