baseline

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveBaseline

func SaveBaseline(problems []*models.Problem, path string, metadata map[string]string) error

SaveBaseline saves a problem snapshot to a file

Types

type Baseline

type Baseline struct {
	Timestamp time.Time         `json:"timestamp"`
	Problems  []*models.Problem `json:"problems"`
	Metadata  map[string]string `json:"metadata"`
}

Baseline represents a saved snapshot of problems

func LoadBaseline

func LoadBaseline(path string) (*Baseline, error)

LoadBaseline loads a baseline from a file

type Comparison

type Comparison struct {
	New       []*models.Problem `json:"new"`
	Resolved  []*models.Problem `json:"resolved"`
	Unchanged []*models.Problem `json:"unchanged"`
	Summary   ComparisonSummary `json:"summary"`
}

Comparison represents the diff between current and baseline states

func Compare

func Compare(current []*models.Problem, baseline *Baseline) *Comparison

Compare compares current problems against a baseline

type ComparisonSummary

type ComparisonSummary struct {
	NewCount       int `json:"new_count"`
	ResolvedCount  int `json:"resolved_count"`
	UnchangedCount int `json:"unchanged_count"`
}

ComparisonSummary provides counts of changes

Jump to

Keyboard shortcuts

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