Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrReadPerfConfig = "failed to read TOML config for performance tests" ErrUnmarshalPerfConfig = "failed to unmarshal TOML config for performance tests" )
View Source
const ( GeneratorType_WASP = "wasp" GeneratorType_Looped = "looped" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaosConfig ¶
type ChaosConfig struct {
ExperimentCount *int `toml:"experiment_count"`
TargetComponent *string `toml:"target_component"`
}
func (*ChaosConfig) Validate ¶
func (c *ChaosConfig) Validate() error
type Config ¶
type Config struct {
General *General `toml:"General"`
ChaosConfig *ChaosConfig `toml:"Chaos"`
Wasp *WaspConfig `toml:"Wasp"`
LoopedConfig *LoopedConfig `toml:"Looped"`
}
type General ¶
type General struct {
Generator *string `toml:"generator"`
EventsToEmit []abi.Event `toml:"-"`
Contracts *int `toml:"contracts"`
EventsPerTx *int `toml:"events_per_tx"`
UseFinalityTag *bool `toml:"use_finality_tag"`
BackupLogPollerBlockDelay *uint64 `toml:"backup_log_poller_block_delay"`
LogPollInterval *blockchain.StrDuration `toml:"log_poll_interval"`
}
type GeneratorType ¶
type GeneratorType = string
type LoopedConfig ¶
type LoopedConfig struct {
ExecutionCount *int `toml:"execution_count"`
MinEmitWaitTimeMs *int `toml:"min_emit_wait_time_ms"`
MaxEmitWaitTimeMs *int `toml:"max_emit_wait_time_ms"`
}
func (*LoopedConfig) Validate ¶
func (l *LoopedConfig) Validate() error
type WaspConfig ¶
type WaspConfig struct {
RPS *int64 `toml:"rps"`
LPS *int64 `toml:"lps"`
RateLimitUnitDuration *blockchain.StrDuration `toml:"rate_limit_unit_duration"`
Duration *blockchain.StrDuration `toml:"duration"`
CallTimeout *blockchain.StrDuration `toml:"call_timeout"`
}
func (*WaspConfig) Validate ¶
func (w *WaspConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.