worker

package
v0.0.0-...-eeea511 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg *Config, keysDir string) error

Run attempts to apply load to a network specified in .simulator/config.yml and periodically prints metrics about the traffic it generates.

Types

type Config

type Config struct {
	Endpoints   []string `json:"endpoints"`
	Concurrency int      `json:"concurrency"`
	BaseFee     uint64   `json:"base-fee"`
	PriorityFee uint64   `json:"priority-fee"`
}

func LoadConfig

func LoadConfig(configPath string) (cfg *Config, err error)

LoadConfig parses and validates the [config] in [.simulator]

func (*Config) Save

func (c *Config) Save(p string) error

Jump to

Keyboard shortcuts

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