Versions in this module Expand all Collapse all v0 v0.2.0 May 23, 2022 Changes in this version + const LogLevelAll + const LogLevelError + const LogLevelInfo + const LogLevelWarning + var Keys = Key + func Details(evt *LogEvent) (text string) + func HitShortcut(event *tcell.EventKey, keybindings ...[]string) bool + type AppMode int + const CommandEntry + const ExitModal + const InfoDialogModal + const LogViewer + type CmdExecFunc func(string) + type Key struct + Cancel []string + MoveDown []string + MoveDown2 []string + MoveFirst []string + MoveFirst2 []string + MoveLast []string + MoveLast2 []string + MoveLeft []string + MoveLeft2 []string + MoveNextField []string + MoveNextPage []string + MovePreviousField []string + MovePreviousPage []string + MoveRight []string + MoveRight2 []string + MoveUp []string + MoveUp2 []string + Select []string + Select2 []string + ShowContextMenu []string + type LogEvent struct + Data interface{} + EventID string + Level LogLevel + Message string + Source string + Timestamp time.Time + func NewLogEvent(eventID string, message string) *LogEvent + type LogLevel uint + type LogVelocityView struct + func NewLogVelocityView(bucketWidth time.Duration) *LogVelocityView + func (lh *LogVelocityView) AppendLogEvent(event *LogEvent) + func (lh *LogVelocityView) AutoScale(from, to time.Time) + func (lh *LogVelocityView) Clear() + func (lh *LogVelocityView) ClearAnchor() + func (lh *LogVelocityView) Draw(screen tcell.Screen) + func (lh *LogVelocityView) GetAnchor() *time.Time + func (lh *LogVelocityView) GetShowLogLevel() LogLevel + func (lh *LogVelocityView) ScaleFor(duration time.Duration) + func (lh *LogVelocityView) SetAnchor(newAnchor time.Time) + func (lh *LogVelocityView) SetShowLogLevel(logLevel LogLevel) + type LogView struct + func NewLogView() *LogView + func (lv *LogView) AppendEvent(logEvent *LogEvent) + func (lv *LogView) AppendEvents(events []*LogEvent) + func (lv *LogView) Clear() + func (lv *LogView) Draw(screen tcell.Screen) + func (lv *LogView) EventCount() uint + func (lv *LogView) FindMatchingEvent(lastEventId string, predicate func(event *LogEvent) bool) *LogEvent + func (lv *LogView) FindTotalMatches(predicate func(event *LogEvent) bool) int + func (lv *LogView) Focus(_ func(p gui.Primitive)) + func (lv *LogView) GetCurrentEvent() *LogEvent + func (lv *LogView) GetEventCount() uint + func (lv *LogView) GetFirstEvent() *LogEvent + func (lv *LogView) GetFocusable() gui.Focusable + func (lv *LogView) GetHeight() int + func (lv *LogView) GetMaxEvents() uint + func (lv *LogView) GetNewEventMatchingRegex() string + func (lv *LogView) GetSourceClipLength() int + func (lv *LogView) GetTimestampFormat() string + func (lv *LogView) GetVisible() bool + func (lv *LogView) GetWidth() int + func (lv *LogView) HasFocus() bool + func (lv *LogView) InputHandler() func(event *tcell.EventKey, setFocus func(p gui.Primitive)) + func (lv *LogView) IsConcatenateEventsEnabled() bool + func (lv *LogView) IsFollowing() bool + func (lv *LogView) IsHighlightCurrentEventEnabled() bool + func (lv *LogView) IsHighlightingEnabled() bool + func (lv *LogView) IsLevelHighlightingEnabled() bool + func (lv *LogView) IsLineWrapEnabled() bool + func (lv *LogView) IsShowSource() bool + func (lv *LogView) IsShowTimestamp() bool + func (lv *LogView) MouseHandler() ... + func (lv *LogView) RefreshHighlights() + func (lv *LogView) ScrollPageDown() + func (lv *LogView) ScrollPageUp() + func (lv *LogView) ScrollToBottom() + func (lv *LogView) ScrollToEventID(eventID string) bool + func (lv *LogView) ScrollToTimestamp(timestamp time.Time) bool + func (lv *LogView) ScrollToTop() + func (lv *LogView) SelectNextEvent() + func (lv *LogView) SelectPrevEvent() + func (lv *LogView) SetBorder(_ bool) + func (lv *LogView) SetConcatenateEvents(enabled bool) + func (lv *LogView) SetCurrentBgColor(color tcell.Color) + func (lv *LogView) SetErrorBgColor(bgColor tcell.Color) + func (lv *LogView) SetEventLimit(limit uint) + func (lv *LogView) SetFollowing(follow bool) + func (lv *LogView) SetHighlightCurrentEvent(enabled bool) + func (lv *LogView) SetHighlightPattern(pattern string) + func (lv *LogView) SetHighlighting(enable bool) + func (lv *LogView) SetLevelHighlighting(enabled bool) + func (lv *LogView) SetLineWrap(enabled bool) + func (lv *LogView) SetMaxEvents(limit uint) + func (lv *LogView) SetNewEventMatchingRegex(regex string) + func (lv *LogView) SetOnCurrentChange(listener OnCurrentChanged) + func (lv *LogView) SetShowSource(enabled bool) + func (lv *LogView) SetShowTimestamp(enabled bool) + func (lv *LogView) SetSourceClipLength(length int) + func (lv *LogView) SetSourceStyle(style tcell.Style) + func (lv *LogView) SetTextStyle(style tcell.Style) + func (lv *LogView) SetTimestampFormat(format string) + func (lv *LogView) SetTimestampStyle(style tcell.Style) + func (lv *LogView) SetVisible(v bool) + func (lv *LogView) SetWarningBgColor(bgColor tcell.Color) + type OnCurrentChanged func(current *LogEvent) + type UI struct + func CreateAppUI() *UI + func (ui *UI) AppendEvent(event *LogEvent) + func (ui *UI) GetCommandHistory() []string + func (ui *UI) HandleGotoLine(s string) + func (ui *UI) HandleSearch(s string) + func (ui *UI) IsCommandEntryVisible() bool + func (ui *UI) IsExitModalVisible() bool + func (ui *UI) IsInfoDialogModalVisible() bool + func (ui *UI) IsLogViewerVisible() bool + func (ui *UI) Run() + func (ui *UI) SetAnchor(lastTime time.Time) + func (ui *UI) SetDetailsGenerator(g func(evt *LogEvent) string) + func (ui *UI) SetErrorBgColor(c tcell.Color) + func (ui *UI) SetExecuteCmdFunc(f CmdExecFunc) + func (ui *UI) SetHighlightCurrentEvent(b bool) + func (ui *UI) SetHighlightPattern(pattern string) + func (ui *UI) SetHighlighting(b bool) + func (ui *UI) SetInputFieldLabel(s string) + func (ui *UI) SetLevelHighlighting(b bool) + func (ui *UI) SetShowTimestamp(b bool) + func (ui *UI) SetStatusViewText(message string) + func (ui *UI) SetStatusViewTextColor(color tcell.Color) + func (ui *UI) SetTitle(s string) + func (ui *UI) SetTitleAlign(s int) + func (ui *UI) SetTitleColor(s tcell.Color) + func (ui *UI) SetWarningBgColor(c tcell.Color) + func (ui *UI) ShowDetailsModal(title, message string) + func (ui *UI) ShowExitModal() + func (ui *UI) ShowInputField() + func (ui *UI) ShowLogEventDetails(evt *LogEvent) + func (ui *UI) ShowLogViewer() + func (ui *UI) Stop()