Documentation
¶
Overview ¶
Package view prints a factorymeter/v1 report for people: as text for a terminal, as Markdown for a job summary or a pull request, and as one HTML page with charts.
It reads the report and nothing else, so anything it shows can also be read out of the JSON. The page follows the line: the verdict, the seven stations side by side, agents next to people, then each station with its history, and last what the numbers stand on.
Index ¶
- func CSP() string
- func Change(s *contract.Series) string
- func HTML(w io.Writer, r *contract.Report, opt HTMLOptions) error
- func Markdown(w io.Writer, r *contract.Report) error
- func Number(unit string, v *float64) string
- func Spark(s *contract.Series) string
- func Text(w io.Writer, r *contract.Report) error
- type HTMLOptions
- type Link
- type Nav
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSP ¶
func CSP() string
CSP is the content security policy of the page. It lets the page run its own style and its own script, each pinned by its hash, and nothing else: no request to any host, no frame, no form.
func HTML ¶
HTML writes the report as one page with its charts. The page carries its own style and script and loads nothing: it reads the same offline, from a file, and from "factorymeter serve".
Types ¶
type HTMLOptions ¶
type HTMLOptions struct {
}
HTMLOptions sets what the page shows besides the report.