logpoller

package
v0.0.0-...-ee810cd Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 3 Imported by: 2

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"`
}

func (*Config) Validate

func (c *Config) Validate() error

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"`
}

func (*General) Validate

func (g *General) Validate() error

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

Jump to

Keyboard shortcuts

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