events

package
v0.0.0-...-6202178 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package events is used for testing the event functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Events

type Events struct{}

Events represents an instance of the events module.

func (*Events) Exports

func (e *Events) Exports() modules.Exports

Exports returns the exports of the k6 module.

type RootModule

type RootModule struct {

	// Used by the test function to wait for all event handler goroutines to exit,
	// to avoid dangling goroutines.
	WG sync.WaitGroup
	// contains filtered or unexported fields
}

RootModule is the global module instance that will create module instances for each VU.

func New

func New(globalEvents, vuEvents []event.Type) *RootModule

New returns a pointer to a new RootModule instance.

func (*RootModule) NewModuleInstance

func (rm *RootModule) NewModuleInstance(vu modules.VU) modules.Instance

NewModuleInstance implements the modules.Module interface to return a new instance for each VU.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL