ui

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() error

Run starts the application

Types

type AlertTriggeredMsg

type AlertTriggeredMsg struct {
	Alert alerts.TriggeredAlert
}

AlertTriggeredMsg is sent when an alert is triggered

type AnimationTickMsg

type AnimationTickMsg struct{}

AnimationTickMsg triggers animation updates

type AutoReloadTickMsg

type AutoReloadTickMsg struct{}

AutoReloadTickMsg triggers auto-reload countdown

type ConnectionResultMsg

type ConnectionResultMsg struct {
	Result *fetcher.ConnectionResult
}

ConnectionResultMsg contains connection test result

type ConnectionTestMsg

type ConnectionTestMsg struct{}

ConnectionTestMsg triggers connection testing

type ErrorMsg

type ErrorMsg struct {
	Err error
}

ErrorMsg represents an error

type HistoryLoadedMsg

type HistoryLoadedMsg struct {
	Record *history.ScanRecord
}

HistoryLoadedMsg is sent when history is loaded on startup

type HistorySavedMsg

type HistorySavedMsg struct {
	ID string
}

HistorySavedMsg is sent when history is saved

type MarketStatusMsg

type MarketStatusMsg struct {
	Status string
}

MarketStatusMsg contains market status

type Model

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

Model is the main bubbletea model

func NewModel

func NewModel() *Model

NewModel creates a new app model

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init initializes the model

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles messages

func (*Model) View

func (m *Model) View() string

View renders the current view

type ReloadTickMsg

type ReloadTickMsg struct{}

ReloadTickMsg triggers reload animation updates

type ScanCompleteMsg

type ScanCompleteMsg struct {
	Results []*screener.ScreenResult
}

ScanCompleteMsg is sent when scanning is complete

type ScanProgressMsg

type ScanProgressMsg struct {
	Completed    int
	Total        int
	Current      string
	SuccessCount int
	ErrorCount   int
	LastError    string // Last error message for verbose display
	ErrorSymbol  string // Symbol that caused the last error
}

ScanProgressMsg is sent during scanning

type StartupScanMsg

type StartupScanMsg struct{}

StartupScanMsg triggers the startup scan

type View

type View int

View represents the current view state

const (
	ViewSplash View = iota
	ViewDashboard
	ViewScanner
	ViewDetails
	ViewWatchlist
	ViewHistory
	ViewConnection
	ViewScanMode
	ViewAlerts
	ViewFilter
	ViewHelp
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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