Documentation ¶
Index ¶
- type Bundle
- type BundleInstance
- type Console
- func (c Console) Debug(ctx *context.Context, msg goja.Value, args ...goja.Value)
- func (c Console) Error(ctx *context.Context, msg goja.Value, args ...goja.Value)
- func (c Console) Info(ctx *context.Context, msg goja.Value, args ...goja.Value)
- func (c Console) Log(ctx *context.Context, msg goja.Value, args ...goja.Value)
- func (c Console) Warn(ctx *context.Context, msg goja.Value, args ...goja.Value)
- type InitContext
- type Runner
- type VU
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶ added in v0.13.0
type Bundle struct { Filename string Source string Program *goja.Program Options lib.Options BaseInitContext *InitContext Env map[string]string }
A Bundle is a self-contained bundle of scripts and resources. You can use this to produce identical BundleInstance objects.
func NewBundleFromArchive ¶ added in v0.15.0
func (*Bundle) Instantiate ¶ added in v0.13.0
func (b *Bundle) Instantiate() (*BundleInstance, error)
Instantiates a new runtime from this bundle.
func (*Bundle) MakeArchive ¶ added in v0.15.0
type BundleInstance ¶ added in v0.13.0
A BundleInstance is a self-contained instance of a Bundle.
type Console ¶ added in v0.10.0
func NewConsole ¶ added in v0.13.0
func NewConsole() *Console
type InitContext ¶ added in v0.13.0
type InitContext struct {
// contains filtered or unexported fields
}
Provides APIs for use in the init context.
func NewInitContext ¶ added in v0.13.0
type Runner ¶
type Runner struct { Bundle *Bundle Logger *log.Logger BaseDialer net.Dialer Resolver *dnscache.Resolver RPSLimit *rate.Limiter // contains filtered or unexported fields }
func NewFromBundle ¶ added in v0.15.0
func (*Runner) GetDefaultGroup ¶ added in v0.5.0
func (*Runner) GetOptions ¶
func (*Runner) MakeArchive ¶ added in v0.15.0
func (*Runner) SetOptions ¶ added in v0.18.1
type VU ¶
type VU struct { BundleInstance Runner *Runner HTTPTransport *http.Transport Dialer *netext.Dialer ID int64 Iteration int64 Console *Console BPool *bpool.BufferPool // contains filtered or unexported fields }
func (*VU) Reconfigure ¶
Click to show internal directories.
Click to hide internal directories.