Documentation
¶
Overview ¶
Package localview derives what a viewer shows for scans on the reader's own machine: the map, the findings' words and the stack labels for one scan, and what changed between two. It reads only the bytes it is given.
Index ¶
Constants ¶
const ( MaxBytes = 50 << 20 MaxDepth = 64 )
The largest facts file the viewer reads, and the deepest nesting of objects and arrays in it. A real scan is a few megabytes and about ten levels deep; past these the page would freeze rather than show anything.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Changes ¶
type Changes struct {
From View `json:"from"`
To View `json:"to"`
Groups []drift.DriftGroup `json:"groups"`
MapGroups []drift.DriftGroup `json:"map_groups"`
Drift *drift.Drift `json:"drift"`
}
Changes is two scans of one repository, the older first, and what changed.