reporting

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator handles report generation.

func NewGenerator

func NewGenerator(templateDir string) (*Generator, error)

NewGenerator creates a new report generator.

func (*Generator) GenerateMarkdown

func (g *Generator) GenerateMarkdown(data ReportData) ([]byte, error)

GenerateMarkdown creates the markdown report content for the given data.

func (*Generator) GeneratePDF

func (g *Generator) GeneratePDF(data ReportData) ([]byte, error)

GeneratePDF generates the final PDF report.

type ReportData

type ReportData struct {
	// TODO: Define fields for simulation results, atmospheric data, motor data, etc.
	Version  string // Application version
	RecordID string
	// ... add other fields like plot paths/data
	AtmospherePlotPath string // Example placeholder
	ThrustPlotPath     string // Example placeholder
	TrajectoryPlotPath string // Example placeholder
	DynamicsPlotPath   string // Example placeholder
	GPSMapImagePath    string // Path to generated GPS map image
}

ReportData holds all the necessary data for generating the report.

func LoadSimulationData

func LoadSimulationData(rm *storage.RecordManager, recordID string) (ReportData, error)

LoadSimulationData loads the necessary data for a report from storage.

Jump to

Keyboard shortcuts

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