Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶ added in v0.2.0
type Application struct { FileName string Config *config.Config BaseStyle lipgloss.Style LastWindowSize tea.WindowSizeMsg Entries source.LazyLogEntries Version string // contains filtered or unexported fields }
Application global state.
func (*Application) Update ¶ added in v1.0.0
func (app *Application) Update(msg tea.Msg)
Update application state.
type EntriesUpdateMsg ¶ added in v1.0.0
type EntriesUpdateMsg struct {
Entries rowGetter
}
type KeyMap ¶ added in v0.2.2
type StateErrorModel ¶ added in v0.4.0
type StateErrorModel struct { *Application // contains filtered or unexported fields }
StateErrorModel is a failure message state.
func (StateErrorModel) Init ¶ added in v0.4.0
func (s StateErrorModel) Init() tea.Cmd
Init initializes component. It implements tea.Model.
func (StateErrorModel) String ¶ added in v0.4.0
func (s StateErrorModel) String() string
String implements fmt.Stringer.
func (StateErrorModel) View ¶ added in v0.4.0
func (s StateErrorModel) View() string
View renders component. It implements tea.Model.
type StateFilteredModel ¶ added in v0.4.0
type StateFilteredModel struct { *Application // contains filtered or unexported fields }
StateFilteredModel is a state that shows filtered records.
func (StateFilteredModel) Init ¶ added in v0.4.0
func (s StateFilteredModel) Init() tea.Cmd
Init initializes component. It implements tea.Model.
func (StateFilteredModel) String ¶ added in v0.4.0
func (s StateFilteredModel) String() string
String implements fmt.Stringer.
func (StateFilteredModel) View ¶ added in v0.4.0
func (s StateFilteredModel) View() string
View renders component. It implements tea.Model.
type StateFilteringModel ¶ added in v0.4.0
type StateFilteringModel struct { *Application // contains filtered or unexported fields }
StateFilteringModel is a state to prompt for filter term.
func (StateFilteringModel) Init ¶ added in v0.4.0
func (s StateFilteringModel) Init() tea.Cmd
Init initializes component. It implements tea.Model.
func (StateFilteringModel) String ¶ added in v0.4.0
func (s StateFilteringModel) String() string
String implements fmt.Stringer.
func (StateFilteringModel) View ¶ added in v0.4.0
func (s StateFilteringModel) View() string
View renders component. It implements tea.Model.
type StateInitialModel ¶ added in v0.4.0
type StateInitialModel struct {
*Application
}
StateInitialModel is an initial loading state.
func (StateInitialModel) Init ¶ added in v0.4.0
func (s StateInitialModel) Init() tea.Cmd
Init initializes component. It implements tea.Model.
func (StateInitialModel) String ¶ added in v0.4.0
func (s StateInitialModel) String() string
String implements fmt.Stringer.
func (StateInitialModel) View ¶ added in v0.4.0
func (s StateInitialModel) View() string
View renders component. It implements tea.Model.
type StateLoadedModel ¶ added in v0.4.0
type StateLoadedModel struct { *Application // contains filtered or unexported fields }
StateLoadedModel is a state that shows all loaded records.
func (StateLoadedModel) Init ¶ added in v0.4.0
func (s StateLoadedModel) Init() tea.Cmd
Init initializes component. It implements tea.Model.
func (StateLoadedModel) String ¶ added in v0.4.0
func (s StateLoadedModel) String() string
String implements fmt.Stringer.
func (StateLoadedModel) Update ¶ added in v0.4.0
Update handles events. It implements tea.Model.
nolint: cyclop // Many events in switch case.
func (StateLoadedModel) View ¶ added in v0.4.0
func (s StateLoadedModel) View() string
View renders component. It implements tea.Model.
type StateViewRowModel ¶ added in v0.4.0
type StateViewRowModel struct { *Application // contains filtered or unexported fields }
StateViewRowModel is a state that shows extended JSON view.
func (StateViewRowModel) Init ¶ added in v0.4.0
func (s StateViewRowModel) Init() tea.Cmd
Init initializes component. It implements tea.Model.
func (StateViewRowModel) String ¶ added in v0.4.0
func (s StateViewRowModel) String() string
String implements fmt.Stringer.
func (StateViewRowModel) View ¶ added in v0.4.0
func (s StateViewRowModel) View() string
View renders component. It implements tea.Model.