search

package
v0.0.0-...-2b1f001 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Close

type Close struct{}

type Filter

type Filter struct {
	Term     string
	Operator config.FilterOp
	Attr     *config.Attribute
	// contains filtered or unexported fields
}

func (Filter) FilterValue

func (f Filter) FilterValue() string

func (Filter) View

func (a Filter) View() string

type KeyMap

type KeyMap struct {
	SelectNextField key.Binding
	SelectPrevField key.Binding
	EditFilter      key.Binding
	NewFilter       key.Binding
	DeleteFilter    key.Binding
	Exit            key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() KeyMap

type Model

type Model struct {
	Filters []Filter
	// contains filtered or unexported fields
}

func FromLogView

func FromLogView(lv config.LogView, width, height int) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) UpdateFilters

func (m Model) UpdateFilters() tea.Cmd

func (Model) View

func (m Model) View() string

type UpdatedFiltersMsg

type UpdatedFiltersMsg struct {
	Filters []config.Filter
}

Jump to

Keyboard shortcuts

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