report

package
v0.0.0-...-9f78717 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHTML

func GenerateHTML(report models.Report, filename string) error

GenerateHTML creates an HTML report file with charts

func PrintConsoleReport

func PrintConsoleReport(r models.Report)

PrintConsoleReport prints a formatted text summary to stdout

Types

type ErrorRow

type ErrorRow struct {
	Message string
	Count   int
}

ErrorRow represents a row in the errors table

type StatusCodeRow

type StatusCodeRow struct {
	Code       string
	Count      int
	Percentage float64
	IsSuccess  bool
}

StatusCodeRow represents a row in the status codes table

type TemplateData

type TemplateData struct {
	GeneratedAt      string
	TargetURL        string
	Method           string
	TestDuration     string
	Concurrency      int
	TotalRequests    int64
	SuccessCount     int64
	FailureCount     int64
	SuccessRate      float64
	RPS              float64
	P50              string
	P90              string
	P95              string
	P99              string
	Max              string
	Min              string
	StatusCodesTable []StatusCodeRow
	Errors           []ErrorRow
	TimeLabels       template.JS
	RPSData          template.JS
	P50Data          template.JS
	P90Data          template.JS
	P95Data          template.JS
	P99Data          template.JS
	SuccessData      template.JS
	FailureData      template.JS
	StatusLabels     template.JS
	StatusData       template.JS
}

TemplateData holds all data for the HTML template

Jump to

Keyboard shortcuts

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