report

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package report renders verdicts as human-readable text or JSON.

The human format is hand-rolled and forecast-first: the Direct P2P line leads so the WebRTC-developer persona gets the answer on line 1. The JSON format is a public contract pinned by golden-file tests; only additive changes are permitted after v0.1. See docs/design.md §UX shape.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(w io.Writer, v classify.Verdict, probes []probe.Result, format Format) error

Render writes a Verdict + probe results to w in the requested format. Writer and encoding errors are returned verbatim.

Types

type Format

type Format int

Format selects the output format for Render.

const (
	// FormatHuman produces a screen-friendly report leading with the forecast.
	FormatHuman Format = iota
	// FormatJSON produces the machine-readable report. The schema is a public
	// contract from v0.1 onward; only additive changes permitted.
	FormatJSON
)

Jump to

Keyboard shortcuts

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