events

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

type LoadingCompleteMsg struct {
	ID modules.ModID
}

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

type StartedLoadingMsg struct {
	ID    modules.ModID
	Total uint
}

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.

Jump to

Keyboard shortcuts

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