config

package
v0.0.0-...-d160b6d Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

config is responsible for reading and validating runtime configuration for the benchmark runner.

These config options are not stored in the config file, but are set by the CLI flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOptions

ClientOptions is the common options object that gets passed to execution clients.

func ReadClientOptions

func ReadClientOptions(ctx *cli.Context) ClientOptions

ReadClientOptions reads any client options from the CLI context, but certain params may also be filled in by test params.

type CommonOptions

type CommonOptions struct {
	// NodeArgs are the arguments to be passed to the node binary.
	NodeArgs []string
}

CommonOptions are common client configuration options.

type Config

type Config interface {
	Check() error
	LogConfig() oplog.CLIConfig
	ClientOptions() ClientOptions
	ConfigPath() string
	DataDir() string
	OutputDir() string
	TxFuzzBinary() string
	ProxyPort() int
	BenchmarkRunID() string
	MachineType() string
	MachineProvider() string
	MachineRegion() string
	FileSystem() string
	ParallelTxBatches() int
}

Config is the interface for the runtime config of the benchmark runner. This is everything that isn't in the config file.

func NewConfig

func NewConfig(ctx *cli.Context) Config

type InternalClientOptions

type InternalClientOptions struct {
	ClientOptions

	JWTSecretPath string
	ChainCfgPath  string
	DataDirPath   string
	TestDirPath   string
	JWTSecret     string
	MetricsPath   string
}

InternalClientOptions are options that are set internally by the runner.

type PortOverrides

type PortOverrides map[string]map[portmanager.PortPurpose]uint64

func (PortOverrides) GetOverride

func (o PortOverrides) GetOverride(nodeType string, purpose portmanager.PortPurpose) *uint64

Jump to

Keyboard shortcuts

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