dashboard

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(auditPath string) (string, error)

func WriteJSON

func WriteJSON(auditPath string) (string, error)

func WriteToFile

func WriteToFile(auditPath, outputPath string) error

Types

type DashboardData

type DashboardData struct {
	TotalScans   int           `json:"total_scans"`
	AvgScore     int           `json:"avg_score"`
	TotalIssues  int           `json:"total_issues"`
	RecentScans  []audit.Entry `json:"recent_scans"`
	ScoreHistory []ScorePoint  `json:"score_history"`
}

type ScorePoint

type ScorePoint struct {
	Timestamp string `json:"timestamp"`
	Score     int    `json:"score"`
	Issues    int    `json:"issues"`
}

Jump to

Keyboard shortcuts

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