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 ¶
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.
Click to show internal directories.
Click to hide internal directories.