Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeyMap = KeyMap{ Up: key.NewBinding( key.WithKeys("k", "up"), key.WithHelp("↑/k", "move up"), ), Down: key.NewBinding( key.WithKeys("j", "down"), key.WithHelp("↓/j", "move down"), ), Quit: key.NewBinding( key.WithKeys("q", "esc", "ctrl+c"), key.WithHelp("q", "quit"), ), Filter: key.NewBinding( key.WithKeys("f"), key.WithHelp("f", "filter logs"), ), Level: key.NewBinding( key.WithKeys("l"), key.WithHelp("l", "log level"), ), }
Functions ¶
This section is empty.
Types ¶
type LogView ¶
type LogView struct {
// contains filtered or unexported fields
}
func NewLogView ¶
func (*LogView) UpdateStatus ¶
UpdateStatus shows the current status message, if withTimer is set the elapsed time that the the status has been shown for will also be displayed
type StatusModel ¶
type StatusModel struct {
// contains filtered or unexported fields
}
func NewStatus ¶
func NewStatus() StatusModel
func (StatusModel) Init ¶
func (m StatusModel) Init() tea.Cmd
func (StatusModel) Update ¶
func (m StatusModel) Update(msg tea.Msg) (StatusModel, tea.Cmd)
func (StatusModel) View ¶
func (m StatusModel) View() string
type StatusMsg ¶
StatusMsg updates the status bar, optionally the elapsed time and spinner can be enabled
type TTYView ¶
type TTYView struct {
// contains filtered or unexported fields
}
func NewTTYView ¶
func (*TTYView) UpdateStatus ¶
UpdateStatus shows the current status message, if withTimer is set the elapsed time that the the status has been shown for will also be displayed
type View ¶
type View interface { // Display starts the view, this is a blocking function Display() error // Logger returns the logger used by the view Logger() logger.Logger // UpdateStatus shows the current status message, if withTimer is set // the elapsed time that the the status has been shown for will also // be displayed UpdateStatus(message string, withTimer bool) }
Click to show internal directories.
Click to hide internal directories.