report

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package report builds the run-quality report (#70) from finished scans. The CLI and the TUI share it, so a -format jsonl file ends with the same summary line whichever front end wrote it (#118).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finish

func Finish(s *output.Summary, targets []output.TargetSummary, elapsed time.Duration)

Finish adds the targets to s, sets the overall verdict (the worst target's) and the achieved query rate over elapsed.

func New

func New(r Run) output.Summary

New starts a summary for a run; add targets with Finish.

func Target

func Target(domain, status, errMsg string, done bool, final scan.Event) output.TargetSummary

Target summarizes one domain's scan. status is "ok", "failed", "interrupted", "skipped" or "" (never run); done reports whether the scan sent its final event, final.

Types

type Run

type Run struct {
	Version   string // the tool version
	Started   time.Time
	Simulated bool
	Seed      uint64 // reported for simulated runs
	Resolver  string // -dns-server, reported for real runs
	Zone      string // -simulate-zone, if any
	RateLimit int
}

Run describes a run for New.

Jump to

Keyboard shortcuts

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