reporter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVReporter

type CSVReporter struct{}

CSVReporter generates a CSV report

func (*CSVReporter) Generate

func (r *CSVReporter) Generate(results *scraper.Results, writer io.Writer) error

Generate generates a CSV report

type HTMLReporter added in v0.2.0

type HTMLReporter struct {
	// contains filtered or unexported fields
}

HTMLReporter generates an interactive HTML report

func NewHTMLReporter added in v0.2.0

func NewHTMLReporter() (*HTMLReporter, error)

NewHTMLReporter creates a new HTMLReporter with parsed template

func (*HTMLReporter) Generate added in v0.2.0

func (r *HTMLReporter) Generate(results *scraper.Results, writer io.Writer) error

Generate generates an HTML report with filtering capabilities

type JSONReporter

type JSONReporter struct{}

JSONReporter generates a JSON report

func (*JSONReporter) Generate

func (r *JSONReporter) Generate(results *scraper.Results, writer io.Writer) error

Generate generates a JSON report

type PrettyReporter

type PrettyReporter struct{}

PrettyReporter generates a human-readable report for terminal

func (*PrettyReporter) Generate

func (r *PrettyReporter) Generate(results *scraper.Results, writer io.Writer) error

Generate generates a pretty report

type Reporter

type Reporter interface {
	Generate(results *scraper.Results, writer io.Writer) error
}

Reporter is an interface for report generators

func New

func New(format string) (Reporter, error)

New creates a new reporter based on the format

Jump to

Keyboard shortcuts

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