Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶ added in v0.2.0
type Application struct { SourceInput source.Input Config *config.Config BaseStyle lipgloss.Style LastWindowSize tea.WindowSizeMsg Version string }
Application global state.
type KeyMap ¶ added in v0.2.2
type StateErrorModel ¶ added in v0.4.0
type StateErrorModel struct {
// 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) LoadEntries ¶ added in v0.4.0
LoadEntries reads and parses entries from the input source.
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 {
// 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) LoadEntries ¶ added in v0.4.0
LoadEntries reads and parses entries from the input source.
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 {
// 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) LoadEntries ¶ added in v0.4.0
LoadEntries reads and parses entries from the input source.
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 {
// contains filtered or unexported fields
}
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) LoadEntries ¶ added in v0.4.0
LoadEntries reads and parses entries from the input source.
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 {
// contains filtered or unexported fields
}
StateLoadedModel is a state that shows all loaded records.
func (StateLoadedModel) Application ¶ added in v0.4.0
func (s StateLoadedModel) Application() Application
func (StateLoadedModel) Init ¶ added in v0.4.0
func (s StateLoadedModel) Init() tea.Cmd
Init initializes component. It implements tea.Model.
func (StateLoadedModel) LoadEntries ¶ added in v0.4.0
LoadEntries reads and parses entries from the input source.
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 {
// 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) LoadEntries ¶ added in v0.4.0
LoadEntries reads and parses entries from the input source.
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.