Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVFeeder ¶
type CSVFeeder struct {
// contains filtered or unexported fields
}
CSVFeeder reads data from a CSV file and cycles through records
func NewCSVFeeder ¶
NewCSVFeeder creates a new CSV feeder
type CompiledTemplate ¶
type CompiledTemplate struct {
// contains filtered or unexported fields
}
CompiledTemplate is a pre-parsed template ready for fast per-request execution. Parsing happens once at config load time; only substitution runs per request.
func CompileTemplate ¶
func CompileTemplate(input string) *CompiledTemplate
CompileTemplate parses a template string into a CompiledTemplate. Must be called once per template string (URL, body, header value, variable value).
func (*CompiledTemplate) Execute ¶
func (ct *CompiledTemplate) Execute(vp *VariableProcessor, session map[string]string) string
Execute renders the compiled template using the given session map and variable processor. Called on every request — designed to minimise allocations.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine implements the load testing logic
type RetryConfig ¶
RetryConfig holds retry settings
func DefaultRetryConfig ¶
func DefaultRetryConfig() RetryConfig
DefaultRetryConfig returns reasonable defaults for retries
type VariableProcessor ¶
type VariableProcessor struct {
// contains filtered or unexported fields
}
VariableProcessor handles the replacement of {{var}} in strings
func NewVariableProcessor ¶
func NewVariableProcessor() *VariableProcessor
NewVariableProcessor creates a new processor with built-in functions