Documentation
¶
Index ¶
- type ModuleInstance
- type RootModule
- type TCP
- func (tcp *TCP) Close(conn *net.TCPConn) error
- func (tcp *TCP) CloseRead(conn *net.TCPConn) error
- func (tcp *TCP) CloseWrite(conn *net.TCPConn) error
- func (tcp *TCP) Connect(tcpType string, address string) (*net.TCPConn, error)
- func (tcp *TCP) Read(conn *net.TCPConn, size int) ([]byte, error)
- func (tcp *TCP) SetDeadlineToInfinite(conn *net.TCPConn) error
- func (tcp *TCP) SetKeepAlive(conn *net.TCPConn, shouldSendKeepAlive bool) error
- func (tcp *TCP) Write(conn *net.TCPConn, data []byte) error
- func (tcp *TCP) WriteBytesLn(conn *net.TCPConn, data []byte, delim []byte) error
- func (tcp *TCP) WriteLn(conn *net.TCPConn, data string, delim string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleInstance ¶
type ModuleInstance struct {
// contains filtered or unexported fields
}
ModuleInstance represents an instance of the JS module.
func (*ModuleInstance) Exports ¶
func (mi *ModuleInstance) Exports() k6modules.Exports
Exports implements the modules.Instance interface and returns the exported types for the JS module.
type RootModule ¶
type RootModule struct{}
RootModule is the global module instance that will create module instances for each VU.
func (*RootModule) NewModuleInstance ¶
func (*RootModule) NewModuleInstance(vu k6modules.VU) k6modules.Instance
NewModuleInstance implements the modules.Module interface returning a new instance for each VU.
type TCP ¶
type TCP struct {
// contains filtered or unexported fields
}
func (*TCP) Connect ¶
Viable values for the tcp type are the ones in golang net.Tcp "tcp", "tcp4", "tcp6", "" => will fallback to "tcp" then
func (*TCP) SetKeepAlive ¶
func (*TCP) WriteBytesLn ¶
Click to show internal directories.
Click to hide internal directories.