Documentation
¶
Overview ¶
ui/app.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetailModel ¶
type DetailModel struct {
// contains filtered or unexported fields
}
DetailModel displays a single LogRecord in structured or raw JSON format.
func NewDetailModel ¶
func NewDetailModel(record logpkg.LogRecord, width, height int) DetailModel
NewDetailModel creates a DetailModel for the given record.
func (*DetailModel) SetSize ¶
func (m *DetailModel) SetSize(width, height int)
SetSize updates the viewport dimensions.
func (DetailModel) Update ¶
func (m DetailModel) Update(msg tea.Msg) (DetailModel, tea.Cmd)
Update handles key messages for the detail view.
type JQInputModel ¶
type JQInputModel struct {
// contains filtered or unexported fields
}
JQInputModel is a modal text input for entering jq expressions.
func NewJQInputModel ¶
func NewJQInputModel(initialExpr string, width int, shape jq.Shape) JQInputModel
NewJQInputModel creates a new jq input modal with the given initial expression.
func (*JQInputModel) SetError ¶
func (m *JQInputModel) SetError(errMsg string)
SetError displays an error message below the input.
func (JQInputModel) Update ¶
func (m JQInputModel) Update(msg tea.Msg) (JQInputModel, tea.Cmd)
Update handles messages for the jq input modal.
func (JQInputModel) Value ¶
func (m JQInputModel) Value() string
Value returns the current input text.
Click to show internal directories.
Click to hide internal directories.