Documentation
¶
Index ¶
- func ArrowRightKeyClicked() tea.Msg
- func EnterKeyClicked() tea.Msg
- func EscKeyClicked() tea.Msg
- func FilterKeyClicked() tea.Msg
- func HelpKeyClicked() tea.Msg
- func OpenJSONRowRequested(logEntries source.LazyLogEntries, index int) func() tea.Msg
- func ShowError(err error) func() tea.Msg
- type ErrorOccuredMsg
- type LogEntriesEOF
- type LogEntriesUpdateMsg
- type OpenJSONRowRequestedMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrowRightKeyClicked ¶
ArrowRightKeyClicked implements tea.Cmd. It creates a message indicating 'arrow-right' has been clicked.
func EnterKeyClicked ¶
EnterKeyClicked implements tea.Cmd. It creates a message indicating 'Enter' has been clicked.
func EscKeyClicked ¶ added in v1.0.0
EscKeyClicked is an "Esc" key event.
func FilterKeyClicked ¶
FilterKeyClicked implements tea.Cmd. It creates a message indicating 'f' has been clicked.
func HelpKeyClicked ¶ added in v1.0.0
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.
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.