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 ¶
type ClientOptions struct {
CommonOptions
rethoptions.RethOptions
gethoptions.GethOptions
rbuilderoptions.RbuilderOptions
PortOverrides PortOverrides
}
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.
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