Versions in this module Expand all Collapse all v0 v0.27.1 Jul 30, 2020 Changes in this version + type ActiveVU struct + func (u *ActiveVU) RunOnce() error + type Bundle struct + BaseInitContext *InitContext + CompatibilityMode lib.CompatibilityMode + Env map[string]string + Filename *url.URL + Options lib.Options + Program *goja.Program + Source string + func NewBundle(src *loader.SourceData, filesystems map[string]afero.Fs, ...) (*Bundle, error) + func NewBundleFromArchive(arc *lib.Archive, rtOpts lib.RuntimeOptions) (*Bundle, error) + func (b *Bundle) Instantiate(vuID int64) (bi *BundleInstance, instErr error) + type BundleInstance struct + Context *context.Context + Runtime *goja.Runtime + type InitContext struct + func NewInitContext(rt *goja.Runtime, c *compiler.Compiler, compatMode lib.CompatibilityMode, ...) *InitContext + func (i *InitContext) Open(ctx context.Context, filename string, args ...string) (goja.Value, error) + func (i *InitContext) Require(arg string) goja.Value + type Runner struct + BaseDialer net.Dialer + Bundle *Bundle + Logger *logrus.Logger + RPSLimit *rate.Limiter + Resolver *dnscache.Resolver + func New(src *loader.SourceData, filesystems map[string]afero.Fs, ...) (*Runner, error) + func NewFromArchive(arc *lib.Archive, rtOpts lib.RuntimeOptions) (*Runner, error) + func NewFromBundle(b *Bundle) (*Runner, error) + func (r *Runner) GetDefaultGroup() *lib.Group + func (r *Runner) GetOptions() lib.Options + func (r *Runner) GetSetupData() []byte + func (r *Runner) IsExecutable(name string) bool + func (r *Runner) MakeArchive() *lib.Archive + func (r *Runner) NewVU(id int64, samplesOut chan<- stats.SampleContainer) (lib.InitializedVU, error) + func (r *Runner) SetOptions(opts lib.Options) error + func (r *Runner) SetSetupData(data []byte) + func (r *Runner) Setup(ctx context.Context, out chan<- stats.SampleContainer) error + func (r *Runner) Teardown(ctx context.Context, out chan<- stats.SampleContainer) error + type VU struct + BPool *bpool.BufferPool + Console *console + CookieJar *cookiejar.Jar + Dialer *netext.Dialer + ID int64 + Iteration int64 + Runner *Runner + Samples chan<- stats.SampleContainer + TLSConfig *tls.Config + Transport *http.Transport + func (u *VU) Activate(params *lib.VUActivationParams) lib.ActiveVU + func (u *VU) GetID() int64