loadbot

package
v0.0.0-1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: LGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Address    types.Address
	PrivateKey *ecdsa.PrivateKey
}

type Configuration

type Configuration struct {
	TPS      uint64
	Sender   types.Address
	Receiver types.Address
	Value    *big.Int
	Count    uint64
	JSONRPC  string
}

type Loadbot

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

func NewLoadBot

func NewLoadBot(cfg *Configuration, metrics *Metrics) *Loadbot

func (*Loadbot) Run

func (l *Loadbot) Run() error

type LoadbotCommand

type LoadbotCommand struct {
	helper.Base
	Formatter *helper.FormatterFlag
}

func (*LoadbotCommand) DefineFlags

func (l *LoadbotCommand) DefineFlags()

func (*LoadbotCommand) GetBaseCommand

func (l *LoadbotCommand) GetBaseCommand() string

func (*LoadbotCommand) GetHelperText

func (l *LoadbotCommand) GetHelperText() string

func (*LoadbotCommand) Help

func (l *LoadbotCommand) Help() string

func (*LoadbotCommand) Run

func (l *LoadbotCommand) Run(args []string) int

func (*LoadbotCommand) Synopsis

func (l *LoadbotCommand) Synopsis() string

type LoadbotResult

type LoadbotResult struct {
	Total  uint64 `json:"total"`
	Failed uint64 `json:"failed"`
}

func (*LoadbotResult) Output

func (r *LoadbotResult) Output() string

type Metrics

type Metrics struct {
	TotalTransactionsSentCount uint64
	FailedTransactionsCount    uint64
}

Jump to

Keyboard shortcuts

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