view

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v0.0.4

func Init()

func SelectMsg added in v0.0.2

func SelectMsg(text *string) tea.Cmd

func Wait added in v0.0.2

func Wait(logs chan table.Row, msg chan string) tea.Cmd

Types

type AppModel added in v0.0.2

type AppModel struct {
	Select   SelectModel
	Logs     TableModel
	Selected bool
	Width    int
	Height   int
}

func NewAppModel added in v0.0.2

func NewAppModel(out io.Reader, config input.Config) AppModel

func (AppModel) Init added in v0.0.2

func (m AppModel) Init() tea.Cmd

func (*AppModel) Resize added in v0.0.2

func (m *AppModel) Resize(width, height int)

func (AppModel) Update added in v0.0.2

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

func (AppModel) View added in v0.0.2

func (m AppModel) View() string

type SelectModel added in v0.0.2

type SelectModel struct {
	Viewport viewport.Model
}

func NewSelectModel added in v0.0.2

func NewSelectModel() SelectModel

func (SelectModel) Init added in v0.0.2

func (m SelectModel) Init() tea.Cmd

func (SelectModel) Resize added in v0.0.2

func (m SelectModel) Resize(width, height int) SelectModel

func (SelectModel) Update added in v0.0.2

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

func (SelectModel) View added in v0.0.2

func (m SelectModel) View() string

type TableModel

type TableModel struct {
	Table      table.Model
	MsgChannel chan string
	LogChannel chan table.Row
	LogHandler input.LogHandler
	Config     *input.Config
}

func NewTableModel

func NewTableModel(config input.Config) TableModel

func (TableModel) Init

func (m TableModel) Init() tea.Cmd

func (TableModel) Resize added in v0.0.2

func (m TableModel) Resize(width, height int) TableModel

func (TableModel) Update

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

func (TableModel) View

func (m TableModel) View() string

Jump to

Keyboard shortcuts

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