Documentation
¶
Overview ¶
Package engine executes a compiled scenario: it runs virtual users under a load plan, records every request and emits one metrics snapshot per interval.
Index ¶
Constants ¶
View Source
const ( StopCompleted = "completed" StopRequested = "stopped" StopKilled = "killed" )
Stop reasons.
Variables ¶
This section is empty.
Functions ¶
func FindChrome ¶
FindChrome returns a Chrome or Chromium executable: $STAMPEDE_CHROME, then the usual names on PATH, then the standard install locations.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine runs one scenario.
func (*Engine) Kill ¶
func (e *Engine) Kill()
Kill stops all load immediately, abandoning in-flight requests.
type Options ¶
type Options struct {
Program *scenario.Program
Plan *scenario.Plan
RunID string
// Env and Secrets back ${env.X} and ${secret.X}.
Env map[string]string
Secrets map[string]string
Options configures an engine.
Click to show internal directories.
Click to hide internal directories.