app

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model of the application.

func NewModel

func NewModel(path string) Model

NewModel initializes a new application model. It accept the path to the file with logs.

func (Model) File added in v0.1.3

func (m Model) File() string

File returns the path to the current file.

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements team.Model interface.

func (Model) IsErrorShown

func (m Model) IsErrorShown() bool

IsErrorShown indicates that err is shown on the screen.

func (Model) IsFilterShown

func (m Model) IsFilterShown() bool

IsFilterShown indicates that the filter is shown on the screen.

func (Model) IsFiltered

func (m Model) IsFiltered() bool

IsFiltered indicates that the results are filtered.

func (Model) IsJSONShown

func (m Model) IsJSONShown() bool

IsJSONShown indicates that extended JSON view is shown on the screen.

func (Model) IsTableShown

func (m Model) IsTableShown() bool

IsJSONShown indicates that the main list is shown on the screen.

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements team.Model interface.

func (Model) View

func (m Model) View() string

View implements team.Model interface.

Jump to

Keyboard shortcuts

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