events

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrowRightKeyClicked

func ArrowRightKeyClicked() tea.Msg

ArrowRightKeyClicked implements tea.Cmd. It creates a message indicating 'arrow-right' has been clicked.

func EnterKeyClicked

func EnterKeyClicked() tea.Msg

EnterKeyClicked implements tea.Cmd. It creates a message indicating 'Enter' has been clicked.

func EscKeyClicked added in v1.0.0

func EscKeyClicked() tea.Msg

EscKeyClicked is an "Esc" key event.

func FilterKeyClicked

func FilterKeyClicked() tea.Msg

FilterKeyClicked implements tea.Cmd. It creates a message indicating 'f' has been clicked.

func HelpKeyClicked added in v1.0.0

func HelpKeyClicked() tea.Msg

HelpKeyClicked is a trigger to display detailed help.

func OpenJSONRowRequested

func OpenJSONRowRequested(logEntries source.LazyLogEntries, index int) func() tea.Msg

OpenJSONRowRequested implements tea.Cmd. It creates OpenJSONRowRequestedMsg.

func ShowError added in v1.0.0

func ShowError(err error) func() tea.Msg

ShowError is an event about occurred error.

Types

type ErrorOccuredMsg

type ErrorOccuredMsg struct{ Err error }

ErrorOccuredMsg is a generic error event.

type LogEntriesEOF added in v1.0.0

type LogEntriesEOF struct{}

type LogEntriesUpdateMsg added in v1.0.0

type LogEntriesUpdateMsg source.LazyLogEntries

LogEntriesUpdateMsg is an event about successfully updated log entries.

type OpenJSONRowRequestedMsg

type OpenJSONRowRequestedMsg struct {
	// LogEntries include all log entities.
	LogEntries source.LazyLogEntries

	// Index of the row.
	Index int
}

OpenJSONRowRequestedMsg is an event to request extended JSON view for the given row.

Jump to

Keyboard shortcuts

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