Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LoadtestCmd = &cobra.Command{ Use: "loadtest", Short: "Run a generic load test against an Eth/EVM style JSON-RPC endpoint.", Long: loadtestUsage, Args: cobra.NoArgs, PreRunE: func(cmd *cobra.Command, args []string) (err error) { cfg.RPCURL, err = flag.GetRPCURL(cmd) if err != nil { return err } cfg.PrivateKey, err = flag.GetPrivateKey(cmd) if err != nil { return err } zerolog.DurationFieldUnit = time.Second zerolog.DurationFieldInteger = true return cfg.Validate() }, RunE: func(cmd *cobra.Command, args []string) error { return loadtest.Run(cmd.Context(), cfg) }, }
LoadtestCmd represents the loadtest command.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.