loadtest

package
v0.0.0-...-fc257e1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateWhiteNoise

func GenerateWhiteNoise(filename string) ([]byte, error)

func Run

func Run(tc *TestClient, num int)

func RunM

func RunM(tc *TestClient)

Types

type TestClient

type TestClient struct {
	AllPeers   []server.Peer
	UpPeers    []server.Peer
	DownPeers  []server.Peer
	HttpClient *http.Client
	// contains filtered or unexported fields
}

func NewTestClient

func NewTestClient(allPeers []server.Peer) *TestClient

func (*TestClient) DoUpload

func (tc *TestClient) DoUpload(wg *sync.WaitGroup, i int)

func (*TestClient) Report

func (tc *TestClient) Report(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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