load2

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadGenerator

type LoadGenerator struct {
	// contains filtered or unexported fields
}

func NewLoadGenerator

func NewLoadGenerator(
	workers []Worker,
	chainID *big.Int,
	metricsNamespace string,
	registry *prometheus.Registry,
	test Test,
) (LoadGenerator, error)

func (LoadGenerator) Run

func (l LoadGenerator) Run(
	tc tests.TestContext,
	ctx context.Context,
	loadTimeout time.Duration,
	testTimeout time.Duration,
)

type Test

type Test interface {
	Run(tc tests.TestContext, ctx context.Context, wallet *Wallet)
}

type Wallet

type Wallet struct {
	// contains filtered or unexported fields
}

func (*Wallet) SendTx

func (w *Wallet) SendTx(
	ctx context.Context,
	tx *types.Transaction,
) error

type Worker

type Worker struct {
	PrivKey *ecdsa.PrivateKey
	Nonce   uint64
	Client  *ethclient.Client
}

type ZeroTransferTest

type ZeroTransferTest struct{}

func (ZeroTransferTest) Run

func (ZeroTransferTest) Run(
	tc tests.TestContext,
	ctx context.Context,
	wallet *Wallet,
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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