report

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONRenderer

type JSONRenderer struct{}

JSONRenderer renders indented JSON with two-space indentation.

func (JSONRenderer) Render

func (JSONRenderer) Render(w io.Writer, snap *Snapshot) error

type MarkdownRenderer

type MarkdownRenderer struct{}

MarkdownRenderer renders a GitHub-flavored Markdown report.

func (MarkdownRenderer) Render

func (MarkdownRenderer) Render(w io.Writer, snap *Snapshot) error

type Renderer

type Renderer interface {
	Render(w io.Writer, snap *Snapshot) error
}

Renderer writes a deterministic, ANSI-free report representation.

func RendererFor

func RendererFor(format string) (Renderer, error)

RendererFor returns the renderer selected by the configured output format.

type Snapshot

type Snapshot struct {
	Host      string
	Timestamp time.Time
	Backend   string
	Devices   []gpu.Device
}

Snapshot is the immutable input rendered by report output formats.

type TableRenderer

type TableRenderer struct{}

TableRenderer renders an ANSI-free text table.

func (TableRenderer) Render

func (TableRenderer) Render(w io.Writer, snap *Snapshot) error

type UnknownFormatError

type UnknownFormatError struct {
	Format string
}

UnknownFormatError reports an unsupported output renderer format.

func (*UnknownFormatError) Error

func (e *UnknownFormatError) Error() string

Jump to

Keyboard shortcuts

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