dashboard

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package dashboard provides read models and pretty-print rendering for the factory dashboard.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(d time.Duration) string

FormatDuration formats a duration compactly for CLI output.

func FormatSimpleDashboard

func FormatSimpleDashboard(
	es interfaces.EngineStateSnapshot[petri.MarkingSnapshot, *state.Net],
	topology *state.Net,
	now time.Time,
) string

FormatSimpleDashboard renders the snapshot-only dashboard shell. Session accounting requires FormatSimpleDashboardWithRenderData.

func FormatSimpleDashboardWithRenderData

func FormatSimpleDashboardWithRenderData(
	es interfaces.EngineStateSnapshot[petri.MarkingSnapshot, *state.Net],
	renderData dashboardrender.SimpleDashboardRenderData,
	now time.Time,
) string

FormatSimpleDashboardWithRenderData renders a dashboard using the dedicated simple-dashboard render DTO for session accounting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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