Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( //TODO: add debounce to avoid congestion TUIBus = make(chan any) )
TUIBus is a channel for sending messages to the Text User Interface (TUI). Modules should use this channel to signal changes in their loading status.
Functions ¶
This section is empty.
Types ¶
type LoadingCompleteMsg ¶
LoadingCompleteMsg represents a message indicating that a module has finished loading. It contains the ID of the module that has completed loading.
type ProgressUpdateMsg ¶
type ProgressUpdateMsg struct {
ID modules.ModID
Instance modules.Module
CurrentCount uint
Total uint
NewBk bool // used for new boomkarks after full load is over
}
ProgressUpdateMsg represents a message indicating progress in loading a module. It includes the module's ID, the current count of loaded items, and the total number of items to be loaded.
type RunnerStarted ¶
type RunnerStarted struct {
watch.WatchRunner
}
Started a watch.Runner instance
type StartedLoadingMsg ¶
StartedLoadingMsg represents a message indicating that a module has started loading. It contains the ID of the module and the total number of items to be loaded.