fetch_ml/cmd/tui/internal/model/messages.go
Jeremie Fraeys 6028779239
feat: update CLI, TUI, and security documentation
- Add safety checks to Zig build
- Add TUI with job management and narrative views
- Add WebSocket support and export services
- Add smart configuration defaults
- Update API routes with security headers
- Update SECURITY.md with comprehensive policy
- Add Makefile security scanning targets
2026-02-19 15:35:05 -05:00

40 lines
981 B
Go

// Package model provides TUI data structures and state management
package model
import "time"
// JobsLoadedMsg contains loaded jobs from the queue
type JobsLoadedMsg []Job
// TasksLoadedMsg contains loaded tasks from the queue
type TasksLoadedMsg []*Task
// DatasetsLoadedMsg contains loaded datasets
type DatasetsLoadedMsg []DatasetInfo
// GpuLoadedMsg contains GPU status information
type GpuLoadedMsg string
// ContainerLoadedMsg contains container status information
type ContainerLoadedMsg string
// LogLoadedMsg contains log content
type LogLoadedMsg string
// QueueLoadedMsg contains queue status information
type QueueLoadedMsg string
// SettingsContentMsg contains settings content
type SettingsContentMsg string
// SettingsUpdateMsg indicates settings should be updated
type SettingsUpdateMsg struct{}
// StatusMsg contains status text and level
type StatusMsg struct {
Text string
Level string
}
// TickMsg represents a timer tick
type TickMsg time.Time