webstress

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RecoverableError = errors.New("recoverable error")
View Source
var UnrecoverableError = errors.New("unrecoverable error")

Functions

This section is empty.

Types

type WebStress

type WebStress struct {
	Workers []*Worker
	Addr    string

	MsgCounter *models.MsgCounter
	// contains filtered or unexported fields
}

func (*WebStress) Init

func (webstress *WebStress) Init(url string, workerCount, pingInterval, rateLimit int, recover bool)

func (*WebStress) SetLogger

func (webstress *WebStress) SetLogger(l *models.Logger)

func (*WebStress) Start

func (webstress *WebStress) Start()

type Worker

type Worker struct {
	WSData *models.WebsocketData
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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